Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 29c3bda

Browse files
author
Mickey Reiss
committed
Update release script
1 parent c45f5e2 commit 29c3bda

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

release.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ fi
2020
echo "Preflight…"
2121

2222
go test ./... || (echo "error: Tests failed."; exit 1)
23-
hub ci-status || (echo "error: CI check failed"; exit 1)
23+
24+
while [[ "$(hub ci-status)" == "pending" ]]; do
25+
echo "Waiting for CI…";
26+
sleep 1
27+
done
28+
29+
hub ci-status || (echo "error: CI failed"; exit 1)
2430

2531
echo Fetching latest tags…
2632
git fetch --tags origin
@@ -52,7 +58,7 @@ for goos in "darwin" "linux" "windows"; do
5258
-o "./.build/firemodel-${goos?}-${GOARCH?}" ./firemodel/main.go
5359
done
5460

55-
read -r -p "Push to GitHub? [yes/no] " PUSH_TAG
61+
read -r -p "Release on GitHub? [yes/no] " PUSH_TAG
5662

5763
case "${PUSH_TAG?}" in
5864
y | yes | YES)
@@ -64,14 +70,13 @@ case "${PUSH_TAG?}" in
6470
hub release \
6571
create \
6672
--message="${NEW_TAG?}" \
67-
--draft \
6873
--attach=.build/firemodel-darwin-amd64 \
6974
--attach=.build/firemodel-linux-amd64 \
7075
--attach=.build/firemodel-windows-amd64 \
7176
--browse \
7277
"${NEW_TAG?}"
7378

74-
echo "If everything looks good, publish this release manually on GitHub."
79+
say "Released firemodel ${NEW_TAG?}"
7580
;;
7681
*)
7782
echo "Skipping tag push."

0 commit comments

Comments
 (0)