-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (25 loc) · 858 Bytes
/
winget.yml
File metadata and controls
28 lines (25 loc) · 858 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 to WinGet
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest
steps:
# Only fetch the latest tag when run manually
- name: Get latest release tag name
if: github.event_name == 'workflow_dispatch'
id: get-latest-release
run: |
"tag=$((gh api repos/${{ github.repository }}/releases/latest | ConvertFrom-Json).tag_name)" >> $env:GITHUB_OUTPUT
shell: pwsh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: Benji377.Tooka
fork-user: Benji377
installers-regex: '\.msi$'
token: ${{ secrets.WINGETCREATE_TOKEN }}
release-tag: ${{ github.event.release.tag_name || steps.get-latest-release.outputs.tag }}