Skip to content

Commit 78a5180

Browse files
author
Markson
committed
releases_feat_v5: fix homebrew upload
1 parent ef8ff16 commit 78a5180

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/release_feat_v5.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,8 @@ jobs:
604604

605605
- name: Compress to Zip Files
606606
run: |
607-
mkdir v2raya-x86_64-linux; cp Downloads/v2raya_linux_amd64_${{ steps.prep.outputs.VERSION }} v2raya-x86_64-linux/v2raya
608-
mkdir v2raya-x86_64-macos; cp Downloads/v2raya_darwin_amd64_${{ steps.prep.outputs.VERSION }} v2raya-x86_64-macos/v2raya
607+
mkdir v2raya-x86_64-linux; cp Downloads/v2raya_linux_x64_${{ steps.prep.outputs.VERSION }}v2raya-x86_64-linux/v2raya
608+
mkdir v2raya-x86_64-macos; cp Downloads/v2raya_darwin_x64_${{ steps.prep.outputs.VERSION }} v2raya-x86_64-macos/v2raya
609609
mkdir v2raya-aarch64-macos; cp Downloads/v2raya_darwin_arm64_${{ steps.prep.outputs.VERSION }} v2raya-aarch64-macos/v2raya
610610
zip -r9 v2raya-x86_64-linux.zip ./v2raya-x86_64-linux/*
611611
zip -r9 v2raya-x86_64-macos.zip ./v2raya-x86_64-macos/*
@@ -619,7 +619,8 @@ jobs:
619619
GITHUB_TOKEN: ${{ secrets.HOMEBREW_V2RAYA_TOKEN }}
620620
run: |
621621
tag_version=$(echo $VERSION | sed 's/v//g')
622-
gh release create $tag_version --repo v2rayA/homebrew-v2raya --title "Releases $version" --generate-notes
623-
gh upload v2rayA/homebrew-v2raya --clobber --repo v2rayA/homebrew-v2raya v2raya-x86_64-linux.zip v2raya-x86_64-linux.zip.sha256.txt
624-
gh upload v2rayA/homebrew-v2raya --clobber --repo v2rayA/homebrew-v2raya v2raya-x86_64-macos.zip v2raya-x86_64-macos.zip.sha256.txt
625-
gh upload v2rayA/homebrew-v2raya --clobber --repo v2rayA/homebrew-v2raya v2raya-aarch64-macos.zip v2raya-aarch64-macos.zip.sha256.txt
622+
gh release create $tag_version --repo v2rayA/homebrew-v2raya --title "Releases $VERSION" --generate-notes
623+
gh release upload $tag_version --repo v2rayA/homebrew-v2raya v2raya-x86_64-linux.zip v2raya-x86_64-linux.zip.sha256.txt \
624+
v2raya-x86_64-macos.zip v2raya-x86_64-macos.zip.sha256.txt \
625+
v2raya-aarch64-macos.zip v2raya-aarch64-macos.zip.sha256.txt
626+

0 commit comments

Comments
 (0)