Run WinGet publish when the draft release is published, since it cannot see draft releases

This commit is contained in:
Dan Davison
2026-10-04 11:16:58 -04:00
parent 9800a761ab
commit be7fb18476
2 changed files with 17 additions and 12 deletions
-12
View File
@@ -102,15 +102,3 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo publish --token ${{ secrets.CARGO_API_KEY }} --allow-dirty
publish-to-winget:
name: Publish to WinGet
runs-on: ubuntu-latest
needs: publish
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: dandavison.delta
version: ${{ github.ref_name }}
installers-regex: '-pc-windows-msvc\.zip$'
token: ${{ secrets.WINGET_TOKEN }}
+17
View File
@@ -0,0 +1,17 @@
name: Publish to WinGet
on:
release:
types: [published]
jobs:
publish-to-winget:
name: Publish to WinGet
runs-on: ubuntu-latest
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: dandavison.delta
version: ${{ github.event.release.tag_name }}
installers-regex: '-pc-windows-msvc\.zip$'
token: ${{ secrets.WINGET_TOKEN }}