-
-
Notifications
You must be signed in to change notification settings - Fork 635
33 lines (27 loc) · 989 Bytes
/
winget.yml
File metadata and controls
33 lines (27 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: WinGet push
on:
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Preparation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
. "Scripts\WinGet.ps1"
- name: Publish to WinGet
run: |
# %LOCALAPPDATA%\Microsoft\WinGet\Packages
# Get the latest wingetcreate
# https://github.com/microsoft/winget-create
# https://github.com/microsoft/winget-pkgs/blob/main/Tools/YamlCreate.ps1
$Parameters = @{
Uri = "https://aka.ms/wingetcreate/latest"
OutFile = "wingetcreate.exe"
UseBasicParsing = $true
}
Invoke-WebRequest @Parameters
.\wingetcreate.exe submit --prtitle "New Version: TeamSophia.SophiaScript version $Version" --token "${{ secrets.WINGET_PAT }}" "Scripts\WinGet_Manifests"