Sandboxie/.github/workflows/winget.yml

32 lines
987 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
2024-06-25 12:18:36 +01:00
uses: vedantmgoyal9/winget-releaser@main
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
2024-06-25 12:18:36 +01:00
uses: vedantmgoyal9/winget-releaser@main
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 }}