Skip to content

Commit

Permalink
fix(winget): use the deployment-specific token to deploy with winget
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Mar 27, 2024
1 parent 708c2e0 commit da084df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ jobs:
$version = "${{ needs.ci-preparation.outputs.next-version }}"
$packageVersion = if ($version.IndexOf("-") -ne -1) { $version.Substring(0, $version.IndexOf("-")) } else { $version }
$installerUrl = "https://github.com/AlchemistSimulator/Alchemist/releases/download/$packageVersion/alchemist-$packageVersion.msi"
.\wingetcreate.exe update $env:packageID --version $packageVersion --urls "$installerUrl" --submit --token $env:GITHUB_TOKEN
$gitToken = "${{ secrets.DEPLOYMENT_TOKEN }}"
.\wingetcreate.exe update $env:packageID --version $packageVersion --urls "$installerUrl" --submit --token $gitToken
success:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit da084df

Please sign in to comment.