diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/release.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 885f998..29eec84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -174,3 +174,29 @@ jobs: sha256sum.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +publish-winget: + name: Submit winget manifest update + runs-on: windows-latest + needs: [release] + steps: + - name: Download wingetcreate + shell: pwsh + run: | + Invoke-WebRequest ` + -Uri https://aka.ms/wingetcreate/latest ` + -OutFile wingetcreate.exe + + - name: Update manifest and submit PR + shell: pwsh + env: + WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }} + run: | + $version = "${{ github.ref_name }}".TrimStart('v') + $url = "https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/DPIBreak-$version-x86_64-pc-windows-msvc.zip" + + ./wingetcreate.exe update Dilluti0n.DPIBreak ` + --version $version ` + --urls $url ` + --submit ` + --token $env:WINGET_TOKEN |
