Skip to content

An open-source cross-platform alternative to AirDrop

ci: allow retrying WinGet publishing after release (#3587)

Shlomo48a38acdcf3f
diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml
index 3d4d57ff..cd81f2f0 100644
--- a/.github/workflows/winget.yml
+++ b/.github/workflows/winget.yml
@@ -2,6 +2,12 @@ name: Publish to WinGet
on:
release:
types: [released]
+ workflow_dispatch:
+ inputs:
+ release_tag:
+ description: Published release tag to publish to WinGet
+ required: true
+ type: string
jobs:
publish:
@@ -12,10 +18,12 @@ jobs:
with:
identifier: LocalSend.LocalSend
installers-regex: 'LocalSend-(?!CLI-).*\.exe$'
+ release-tag: ${{ inputs.release_tag || github.event.release.tag_name }}
token: ${{ secrets.WINGET_TOKEN }}
- name: Publish LocalSend CLI
uses: vedantmgoyal9/winget-releaser@main
with:
identifier: LocalSend.LocalSend.CLI
installers-regex: 'LocalSend-CLI-.*\.exe$'
+ release-tag: ${{ inputs.release_tag || github.event.release.tag_name }}
token: ${{ secrets.WINGET_TOKEN }}