mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-05 03:13:14 +00:00
feat(release): add winget arm64 push & repo sync (#5033)
This commit is contained in:
parent
0e334e3e6c
commit
aef1a3f275
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -322,11 +322,16 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
URL_64: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-x86_64-pc-windows-msvc.msi
|
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_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:
|
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: |
|
- run: |
|
||||||
$version = '${{ needs.release_please.outputs.tag_name }}'.replace('v', '')
|
$version = '${{ needs.release_please.outputs.tag_name }}'.replace('v', '')
|
||||||
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
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:
|
choco_update:
|
||||||
name: Update Chocolatey Package
|
name: Update Chocolatey Package
|
||||||
|
Loading…
Reference in New Issue
Block a user