Skip to content

Commit c330e31

Browse files
committed
Fix winget release process..
1 parent 7194e49 commit c330e31

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/winget_deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
name: Publish WinGet Release
22

33
on:
4-
release:
5-
types: [published]
4+
workflow_run:
5+
workflows: ["Build and Upload .NET binary"]
6+
types: [completed]
67

78
jobs:
89
build-and-pack:
10+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
911
runs-on: ubuntu-latest
1012

1113
steps:
@@ -18,4 +20,4 @@ jobs:
1820
komac-token: ${{ secrets.GH_TOKEN_FOR_WINGET_PUBLISH }}
1921
identifier: "TragicCode.BuslyCLI"
2022
repo: "TraGicCode/busly-cli"
21-
url: "https://github.com/TraGicCode/busly-cli/releases/download/${{ github.event.release.tag_name }}/busly-cli-${{ github.event.release.tag_name }}-win-x64.zip"
23+
url: "https://github.com/TraGicCode/busly-cli/releases/download/${{ github.event.workflow_run.head_branch }}/busly-cli-${{ github.event.workflow_run.head_branch }}-win-x64.zip"

0 commit comments

Comments
 (0)