Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
∙
∙ Bench: 8416299
  • Loading branch information
dede1751 committed Sep 24, 2023
1 parent 1ba21bc commit 15e79ca
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,43 +90,43 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag_name=v2.1
tag_name="${GITHUB_REF##*/}"
ls -l
chmod +x carp-linux-x86-64
chmod +x carp-linux-x86-64-v2
chmod +x carp-linux-x86-64-v3
chmod +x carp-linux-x86-64-v4
mkdir bins
mv carp-win-x86-64.exe bins/carp-${tag_name}-win-x86_64-V1.exe
mv carp-win-x86-64-v2.exe bins/carp-${tag_name}-win-x86_64-V2.exe
mv carp-win-x86-64-v3.exe bins/carp-${tag_name}-win-x86_64-V3.exe
mv carp-win-x86-64-v4.exe bins/carp-${tag_name}-win-x86_64-V4.exe
mkdir release_bins
mv carp-win-x86-64.exe release_bins/carp-${tag_name}-win-x86_64-V1.exe
mv carp-win-x86-64-v2.exe release_bins/carp-${tag_name}-win-x86_64-V2.exe
mv carp-win-x86-64-v3.exe release_bins/carp-${tag_name}-win-x86_64-V3.exe
mv carp-win-x86-64-v4.exe release_bins/carp-${tag_name}-win-x86_64-V4.exe
mv carp-linux-x86-64 bins/carp-${tag_name}-linux-x86_64-V1
mv carp-linux-x86-64-v2 bins/carp-${tag_name}-linux-x86_64-V2
mv carp-linux-x86-64-v3 bins/carp-${tag_name}-linux-x86_64-V3
mv carp-linux-x86-64-v4 bins/carp-${tag_name}-linux-x86_64-V4
mv carp-linux-x86-64 release_bins/carp-${tag_name}-linux-x86_64-V1
mv carp-linux-x86-64-v2 release_bins/carp-${tag_name}-linux-x86_64-V2
mv carp-linux-x86-64-v3 release_bins/carp-${tag_name}-linux-x86_64-V3
mv carp-linux-x86-64-v4 release_bins/carp-${tag_name}-linux-x86_64-V4
mv carp-darwin-x86-64 bins/carp-${tag_name}-darwin-x86_64-V1
mv carp-darwin-x86-64-v2 bins/carp-${tag_name}-darwin-x86_64-V2
mv carp-darwin-x86-64 release_bins/carp-${tag_name}-darwin-x86_64-V1
mv carp-darwin-x86-64-v2 release_bins/carp-${tag_name}-darwin-x86_64-V2
sha256sum bins/* > checksums.txt
sha256sum release_bins/* > checksums.txt
echo "$tag_name" > release_description.txt
cat release_notes.MD >> release_description.txt
hub release create --draft \
-a "checksums.txt#Checksums" \
-a "bins/carp-${tag_name}-darwin-x86_64-V1#Carp - MacOS Darwin (x86_64 - V1)" \
-a "bins/carp-${tag_name}-darwin-x86_64-V2#Carp - MacOS Darwin (x86_64 - V2)" \
-a "bins/carp-${tag_name}-win-x86_64-V1.exe#Carp - Windows (x86_64 - V1)" \
-a "bins/carp-${tag_name}-win-x86_64-V2.exe#Carp - Windows (x86_64 - V2)" \
-a "bins/carp-${tag_name}-win-x86_64-V3.exe#Carp - Windows (x86_64 - V3)" \
-a "bins/carp-${tag_name}-win-x86_64-V4.exe#Carp - Windows (x86_64 - V4)" \
-a "bins/carp-${tag_name}-linux-x86_64-V1#Carp - Linux (x86_64 - V1)" \
-a "bins/carp-${tag_name}-linux-x86_64-V2#Carp - Linux (x86_64 - V2)" \
-a "bins/carp-${tag_name}-linux-x86_64-V3#Carp - Linux (x86_64 - V3)" \
-a "bins/carp-${tag_name}-linux-x86_64-V4#Carp - Linux (x86_64 - V4)" \
-a "release_bins/carp-${tag_name}-darwin-x86_64-V1#Carp - MacOS Darwin (x86_64 - V1)" \
-a "release_bins/carp-${tag_name}-darwin-x86_64-V2#Carp - MacOS Darwin (x86_64 - V2)" \
-a "release_bins/carp-${tag_name}-win-x86_64-V1.exe#Carp - Windows (x86_64 - V1)" \
-a "release_bins/carp-${tag_name}-win-x86_64-V2.exe#Carp - Windows (x86_64 - V2)" \
-a "release_bins/carp-${tag_name}-win-x86_64-V3.exe#Carp - Windows (x86_64 - V3)" \
-a "release_bins/carp-${tag_name}-win-x86_64-V4.exe#Carp - Windows (x86_64 - V4)" \
-a "release_bins/carp-${tag_name}-linux-x86_64-V1#Carp - Linux (x86_64 - V1)" \
-a "release_bins/carp-${tag_name}-linux-x86_64-V2#Carp - Linux (x86_64 - V2)" \
-a "release_bins/carp-${tag_name}-linux-x86_64-V3#Carp - Linux (x86_64 - V3)" \
-a "release_bins/carp-${tag_name}-linux-x86_64-V4#Carp - Linux (x86_64 - V4)" \
-F release_description.txt \
"$tag_name"

0 comments on commit 15e79ca

Please sign in to comment.