summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2024-03-20 11:00:50 +0100
committerGitHub <noreply@github.com>2024-03-20 19:00:50 +0900
commitaef1a3f275e7ec9095c4718ecf6a268abfe7794a (patch)
tree044959104bf7ad3a54c30f0a184511f396d71d54
parent0e334e3e6c71eca140d36c112dc46a668e2920d8 (diff)
feat(release): add winget arm64 push & repo sync (#5033)
-rw-r--r--.github/workflows/release.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9fe2c0801..d4d9f44fa 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -322,11 +322,16 @@ jobs:
env:
URL_64: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-x86_64-pc-windows-msvc.msi
URL_32: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-i686-pc-windows-msvc.msi
+ URL_ARM: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-aarch64-pc-windows-msvc.zip
steps:
+ # Publishing will fail if the repo is too far behind the upstream
+ - run: gh repo sync matchai/winget-pkgs
+ env:
+ GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- run: |
$version = '${{ needs.release_please.outputs.tag_name }}'.replace('v', '')
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
- ./wingetcreate.exe update Starship.Starship -s -v $version -u $env:URL_64 $env:URL_32 -t ${{ secrets.GH_PAT }}
+ ./wingetcreate.exe update Starship.Starship -s -v $version -u $env:URL_64 $env:URL_32 $env:URL_ARM -t ${{ secrets.GH_PAT }}
choco_update:
name: Update Chocolatey Package