fix winget releaser

This commit is contained in:
ReenigneArcher 2022-10-28 15:44:27 -04:00
parent a82a9f8ada
commit d0ce0a67f2
No known key found for this signature in database
GPG Key ID: 0CA6A47B0630EA9B
2 changed files with 14 additions and 17 deletions

View File

@ -800,3 +800,17 @@ jobs:
next_version: ${{ needs.check_changelog.outputs.next_version }}
last_version: ${{ needs.check_changelog.outputs.last_version }}
release_body: ${{ needs.check_changelog.outputs.release_body }}
release-winget:
name: Release to WinGet
needs: build_win
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
runs-on: windows-latest # the required action can only be run on Windows
steps:
- name: Release to WinGet
uses: vedantmgoyal2009/winget-releaser@v1
with:
identifier: LizardByte.Sunshine
release-tag: ${{ needs.check_changelog.outputs.next_version }}
installers-regex: '\.exe$' # only .exe files
token: ${{ secrets.GH_BOT_TOKEN }}

View File

@ -1,17 +0,0 @@
---
name: Publish to WinGet
on:
release:
types: [released]
jobs:
winget-releaser:
name: winget releaser
runs-on: windows-latest
steps:
- name: winget releaser
uses: vedantmgoyal2009/winget-releaser@latest
with:
identifier: LizardByte.Sunshine
token: ${{ secrets.GH_BOT_TOKEN }}