Skip to content

Commit

Permalink
ci: add an action to automatically publish a winget PR on release
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Jun 18, 2023
1 parent 7c0eda1 commit fc16016
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit fc16016

Please sign in to comment.