Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,17 @@ jobs:
gh repo sync "$forkOwner/winget-pkgs" --source microsoft/winget-pkgs

- name: Submit package using wingetcreate
# winget-create will read the following environment variable to access the GitHub token needed for submitting a PR
# See https://aka.ms/winget-create-token
env:
WINGET_CREATE_GITHUB_TOKEN: ${{ secrets.WINGET_GITHUB_TOKEN }}
run: |
$packageVersion = "${{ github.ref }}" -replace 'refs/tags/v', ''
$installerUrl = "https://github.com/httptoolkit/httptoolkit-desktop/releases/download/v$packageVersion/HttpToolkit-$packageVersion.exe"

# Update package using wingetcreate
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
curl.exe -JLO https://aka.ms/wingetcreate/latest
.\wingetcreate.exe update HTTPToolKit.HTTPToolKit `
--version $packageVersion `
--urls "$installerUrl|x64" `
--submit `
--token "${{ secrets.WINGET_GITHUB_TOKEN }}"
--submit