mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-10 14:44:18 +00:00
ci: add an action to automatically publish a winget PR on release (#1213)
This commit is contained in:
parent
7c0eda1034
commit
45840d45c5
1 changed files with 14 additions and 6 deletions
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
|
||||
|
||||
|
@ -58,11 +61,7 @@ jobs:
|
|||
mike deploy --push --update-aliases ${RELEASE_VERSION} stable
|
||||
mike retitle --push ${RELEASE_VERSION} "${RELEASE_VERSION} (stable)"
|
||||
|
||||
# - name: Deploy to CF Pages
|
||||
# run: |
|
||||
# curl -X POST ${{ secrets.BOTTOM_CFP_HOOK }}
|
||||
|
||||
packaging:
|
||||
chocolatey:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
@ -93,3 +92,12 @@ jobs:
|
|||
-H 'Accept: application/vnd.github.everest-preview+json' \
|
||||
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
|
||||
--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…
Reference in a new issue