Skip to content

Commit 66b5e44

Browse files
authored
script: specify remote ref on release (#28)
1 parent 84afacf commit 66b5e44

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

script/release.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22
set -eu -o pipefail
33

4-
MODULE_PREFIX="github.com/abema/crema"
5-
RELEASE_ORIGIN="https://github.com/abema/crema"
4+
REPO_REF="github.com/abema/crema"
5+
MODULE_PREFIX=${REPO_REF}
6+
RELEASE_ORIGIN="https://${REPO_REF}"
67

78
SUBMODULE_DIRS=(
89
"ext/go-json"
@@ -48,7 +49,7 @@ release_tag() {
4849
tag="${tag#./}"
4950

5051
echo "release tag ${tag}"
51-
gh release create "${tag}" --generate-notes --latest="${latest}"
52+
gh release create "${tag}" --repo ${REPO_REF} --generate-notes --latest="${latest}"
5253
}
5354

5455
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then

0 commit comments

Comments
 (0)