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:
|
2022-09-04 14:05:44 +01:00
|
|
|
- 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:
|
2022-09-04 14:05:44 +01:00
|
|
|
- name: Get Sandboxie-Classic version
|
|
|
|
id: get_version
|
|
|
|
run: |
|
|
|
|
$VERSION="${{ github.event.release.name }}" -replace '^.*/ '
|
2022-10-15 09:55:53 +01:00
|
|
|
"CLASSIC_VER=$VERSION" >> $env:GITHUB_OUTPUT
|
2022-09-04 14:05:44 +01:00
|
|
|
shell: pwsh
|
|
|
|
- name: Publish Sandboxie-Classic
|
2024-06-25 12:18:36 +01:00
|
|
|
uses: vedantmgoyal9/winget-releaser@main
|
2022-09-04 14:05:44 +01:00
|
|
|
with:
|
|
|
|
version: ${{ steps.get_version.outputs.CLASSIC_VER }}
|
|
|
|
identifier: Sandboxie.Classic
|
2022-09-13 00:02:03 +01:00
|
|
|
installers-regex: "Sandboxie-Classic.*.exe$"
|
2022-09-04 14:05:44 +01:00
|
|
|
token: ${{ secrets.WINGET_TOKEN }}
|