This repository was archived by the owner on Jun 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 2020echo " Preflight…"
2121
2222go 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
2531echo Fetching latest tags…
2632git fetch --tags origin
@@ -52,7 +58,7 @@ for goos in "darwin" "linux" "windows"; do
5258 -o " ./.build/firemodel-${goos?} -${GOARCH?} " ./firemodel/main.go
5359done
5460
55- read -r -p " Push to GitHub? [yes/no] " PUSH_TAG
61+ read -r -p " Release on GitHub? [yes/no] " PUSH_TAG
5662
5763case " ${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."
You can’t perform that action at this time.
0 commit comments