File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ shopt -s extglob
77
88RELEASE=$1
99SIGNER=$2
10+ TAG=${RELEASE/ v/ }
1011
1112echo " RELEASE: $RELEASE "
1213echo " SIGNER: $SIGNER "
1920
2021mkdir -p " gh-release-artifacts/${RELEASE} "
2122
22- git archive --format=tar.gz -o " gh-release-artifacts/${RELEASE} /ghcup-${RELEASE } -src.tar.gz" --prefix=" ghcup-${RELEASE } /" HEAD
23+ git archive --format=tar.gz -o " gh-release-artifacts/${RELEASE} /ghcup-${TAG } -src.tar.gz" --prefix=" ghcup-${TAG } /" HEAD
2324
2425cd " gh-release-artifacts/${RELEASE} "
2526
2627# github
2728gh release download " $RELEASE "
2829
2930# cirrus
30- curl -L -o " x86_64-portbld-freebsd-ghcup-${RELEASE } " \
31+ curl -L -o " x86_64-portbld-freebsd-ghcup-${TAG } " \
3132 " https://api.cirrus-ci.com/v1/artifact/github/haskell/ghcup-hs/build/binaries/out/x86_64-portbld-freebsd-ghcup-${RELEASE} ?branch=${RELEASE} "
3233
3334sha256sum ./* -ghcup-* > SHA256SUMS
3435gpg --detach-sign -u " ${SIGNER} " SHA256SUMS
3536
36- gh release upload " $RELEASE " " ghcup-${RELEASE } -src.tar.gz" " x86_64-portbld-freebsd-ghcup-${RELEASE } " SHA256SUMS SHA256SUMS.sig
37+ gh release upload " $RELEASE " " ghcup-${TAG } -src.tar.gz" " x86_64-portbld-freebsd-ghcup-${TAG } " SHA256SUMS SHA256SUMS.sig
You can’t perform that action at this time.
0 commit comments