You've already forked Sophia-Script-for-Windows
mirror of
https://github.com/farag2/Sophia-Script-for-Windows.git
synced 2026-04-24 19:03:49 +02:00
34 lines
989 B
YAML
34 lines
989 B
YAML
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"
|