mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-26 07:04:51 +02:00
ci: add an action to automatically publish a winget PR on release (#1213)
This commit is contained in:
parent
7c0eda1034
commit
45840d45c5
20
.github/workflows/post-release.yml
vendored
20
.github/workflows/post-release.yml
vendored
@ -1,4 +1,7 @@
|
|||||||
# Actions to run after releasing a version, like generating documentation via mkdocs or notifying packaging repos.
|
# Actions to run after releasing a version, like:
|
||||||
|
# - Generating documentation via mkdocs
|
||||||
|
# - Notifying packaging repos
|
||||||
|
# - Automatically creating winget packages
|
||||||
|
|
||||||
name: post-release
|
name: post-release
|
||||||
|
|
||||||
@ -58,11 +61,7 @@ jobs:
|
|||||||
mike deploy --push --update-aliases ${RELEASE_VERSION} stable
|
mike deploy --push --update-aliases ${RELEASE_VERSION} stable
|
||||||
mike retitle --push ${RELEASE_VERSION} "${RELEASE_VERSION} (stable)"
|
mike retitle --push ${RELEASE_VERSION} "${RELEASE_VERSION} (stable)"
|
||||||
|
|
||||||
# - name: Deploy to CF Pages
|
chocolatey:
|
||||||
# run: |
|
|
||||||
# curl -X POST ${{ secrets.BOTTOM_CFP_HOOK }}
|
|
||||||
|
|
||||||
packaging:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -93,3 +92,12 @@ jobs:
|
|||||||
-H 'Accept: application/vnd.github.everest-preview+json' \
|
-H 'Accept: application/vnd.github.everest-preview+json' \
|
||||||
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
|
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
|
||||||
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'
|
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'
|
||||||
|
|
||||||
|
winget:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: vedantmgoyal2009/winget-releaser@79853c0938cc9946c1ec3cdd1b2e761bb0372b8c # v2
|
||||||
|
with:
|
||||||
|
identifier: Package.Identifier
|
||||||
|
installers-regex: '^bottom_x86_64_installer\.msi$'
|
||||||
|
token: ${{ secrets.WINGET_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user