diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2d367286..8eee5358 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 }} diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml deleted file mode 100644 index 0cf5b371..00000000 --- a/.github/workflows/winget.yml +++ /dev/null @@ -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 }}