diff --git a/.github/workflows/deploy-pypi.yml b/.github/workflows/deploy-pypi.yml index a47a410..390942b 100644 --- a/.github/workflows/deploy-pypi.yml +++ b/.github/workflows/deploy-pypi.yml @@ -57,8 +57,7 @@ jobs: dist/*.whl publish-to-pypi: - name: >- - Publish Python distribution to PyPI + name: Publish Python distribution to PyPI if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: - build-distribution @@ -222,8 +221,7 @@ jobs: Furious-*.AppImage github-release: - name: >- - Upload to GitHub Release + name: Upload to GitHub Release needs: - deploy-binaries - publish-to-pypi @@ -256,3 +254,17 @@ jobs: gh release upload '${{ github.ref_name }}' dist/** --repo '${{ github.repository }}' + + publish-winget: + name: Publish to WinGet + needs: + - github-release + runs-on: windows-latest + steps: + - uses: vedantmgoyal9/winget-releaser@main + with: + identifier: LorenEteval.Furious + release-tag: ${{ github.ref_name }} + installers-regex: '^Furious-.*\.zip$' + max-versions-to-keep: 5 + token: ${{ secrets.WINGET_TOKEN }} diff --git a/.github/workflows/publish-winget.yml b/.github/workflows/publish-winget.yml deleted file mode 100644 index da9d6f3..0000000 --- a/.github/workflows/publish-winget.yml +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (C) 2024–present Loren Eteval & contributors -# -# This file is part of Furious. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -name: Publish to WinGet - -on: - release: - types: [ released ] - -jobs: - publish: - runs-on: windows-latest - steps: - - uses: vedantmgoyal9/winget-releaser@main - with: - identifier: Package.Identifier - max-versions-to-keep: 5 - token: ${{ secrets.WINGET_TOKEN }}