Sandboxie/.github/workflows/winget.yml

32 lines
989 B
YAML
Raw Normal View History

2022-05-11 15:33:00 +01:00
name: Publish to WinGet
on:
release:
types: [released]
jobs:
2022-09-13 00:02:03 +01:00
publish-plus:
runs-on: windows-latest # action can only be run on Windows
2022-05-11 15:33:00 +01:00
steps:
- name: Publish Sandboxie-Plus
uses: vedantmgoyal2009/winget-releaser@v1
2022-05-11 15:33:00 +01:00
with:
identifier: Sandboxie.Plus
2022-09-13 00:02:03 +01:00
installers-regex: "Sandboxie-Plus.*.exe$"
2022-05-11 15:33:00 +01:00
token: ${{ secrets.WINGET_TOKEN }}
2022-09-13 00:02:03 +01:00
publish-classic:
runs-on: windows-latest
steps:
- name: Get Sandboxie-Classic version
id: get_version
run: |
$VERSION="${{ github.event.release.name }}" -replace '^.*/ '
"CLASSIC_VER=$VERSION" >> $env:GITHUB_OUTPUT
shell: pwsh
- name: Publish Sandboxie-Classic
uses: vedantmgoyal2009/winget-releaser@v1
with:
version: ${{ steps.get_version.outputs.CLASSIC_VER }}
identifier: Sandboxie.Classic
2022-09-13 00:02:03 +01:00
installers-regex: "Sandboxie-Classic.*.exe$"
token: ${{ secrets.WINGET_TOKEN }}