-
-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (23 loc) · 917 Bytes
/
winget_deploy.yml
File metadata and controls
28 lines (23 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Publish WinGet Release
on:
workflow_run:
workflows: ["Build and Upload .NET binary"]
types: [completed]
jobs:
build-and-pack:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Sync winget-pkgs fork
run: gh repo sync TraGicCode/winget-pkgs -b master --force
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_FOR_WINGET_PUBLISH }}
- name: Update Winget package
uses: michidk/winget-updater@v1
with:
komac-token: ${{ secrets.GH_TOKEN_FOR_WINGET_PUBLISH }}
identifier: "TragicCode.BuslyCLI"
repo: "TraGicCode/busly-cli"
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"