mirror of
https://github.com/dandavison/delta.git
synced 2026-10-12 02:12:41 +00:00
Run WinGet publish when the draft release is published, since it cannot see draft releases
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user