Fix publish recipe
Previously, the release branch would be merged after pushing a tag to github. This would cause the merge to fail, because github would kick off a CI run after pushing the tag, and block the merge because it wasn't finished. This changes the publish recipe to merge before pushing the tag, which aboves the above problem. type: development
This commit is contained in:
parent
164a87d7ad
commit
1e4d224dcb
9
justfile
9
justfile
|
@ -86,15 +86,14 @@ publish-check: check
|
|||
cargo outdated --exit-code 1
|
||||
grep '^\[{{version}}\]' target/gen/CHANGELOG.md
|
||||
|
||||
publish: publish-check
|
||||
publish BRANCH=`git rev-parse --abbrev-ref HEAD`: publish-check (merge BRANCH)
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
while ! hub ci-status --verbose; do
|
||||
sleep 5
|
||||
done
|
||||
git tag -a {{version}} -m 'Release {{version}}'
|
||||
git push github {{version}}
|
||||
just merge
|
||||
while ! hub ci-status --verbose {{BRANCH}}; do
|
||||
sleep 5
|
||||
done
|
||||
cargo publish
|
||||
|
||||
# record, upload, and render demo animation
|
||||
|
|
Loading…
Reference in New Issue
Block a user