diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..6f822c0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,18 @@ +name: Deploy + +on: + release: + types: [published] + +jobs: + winget: + name: Publish + runs-on: windows-latest + steps: + - name: Submit + run: / + iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe + $github = Get-Content '${{ github.event_path }}' | ConvertFrom-Json + $installerUrl = $github.release.assets | Where-Object -Property name -match 'steam-tools-ng-setup.exe' | Select -ExpandProperty browser_download_url -First 1 + $versionNumber = $github.release.tag_name -replace ".*v" + .\wingetcreate.exe update calendulish.SteamToolsNG -s -v $versionNumber -u $installerUrl -t ${{ secrets.STNG_PAT }}