summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2023-06-18 08:00:10 +0000
committerGitHub <noreply@github.com>2023-06-18 04:00:10 -0400
commit45840d45c5cfd9acdd92acda6e89d6a82c356577 (patch)
tree744e79896439cd45af9c4fdbb58d79c226dec7d6
parent7c0eda10347f7e9c96a6fcb04fc69aaa87318d55 (diff)
ci: add an action to automatically publish a winget PR on release (#1213)
-rw-r--r--.github/workflows/post-release.yml20
1 files changed, 14 insertions, 6 deletions
diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml
index ef1a1e33..3aece44a 100644
--- a/.github/workflows/post-release.yml
+++ b/.github/workflows/post-release.yml
@@ -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 }}