Skip to content

Commit

Permalink
[CI] Add deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
calendulish committed Nov 4, 2024
1 parent c26dcd9 commit 6c50d2c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 6c50d2c

Please sign in to comment.