mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-11 22:09:40 +08:00
ci: add publish-to-winget action
This commit is contained in:
21
.github/workflows/release-winget.yml
vendored
Normal file
21
.github/workflows/release-winget.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Publish to WinGet
|
||||
on:
|
||||
release:
|
||||
types: [released]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release_tag:
|
||||
required: true
|
||||
description: 'Tag of release you want to publish'
|
||||
type: string
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: vedantmgoyal9/winget-releaser@v2
|
||||
with:
|
||||
identifier: Syngnat.GoNavi
|
||||
installers-regex: 'windows-(amd64|arm64)\.exe$'
|
||||
release-tag: ${{ inputs.release_tag || github.event.release.tag_name }}
|
||||
# Make sure that the WINGET_TOKEN has the permissions for the repo, workflow, and pull_request.
|
||||
token: ${{ secrets.WINGET_TOKEN }}
|
||||
Reference in New Issue
Block a user