chore: make sure repo is clean before publish
This commit is contained in:
parent
d32c84a056
commit
969622f178
16
justfile
16
justfile
|
@ -12,12 +12,14 @@ token_tests:
|
|||
cargo run -- api energy-sites
|
||||
|
||||
publish version:
|
||||
# BSD sed
|
||||
sed -i '' "s/^version = \".*\"$/version = \"{{version}}\"/" Cargo.toml
|
||||
git diff-index --quiet HEAD
|
||||
|
||||
git add Cargo.toml
|
||||
git commit -m "chore: v{{version}}"
|
||||
git tag "v{{version}}"
|
||||
git push origin "v{{version}}"
|
||||
# BSD sed
|
||||
sed -i '' "s/^version = \".*\"$/version = \"{{version}}\"/" Cargo.toml
|
||||
|
||||
cargo publish
|
||||
git add Cargo.toml
|
||||
git commit -m "chore: v{{version}}"
|
||||
git tag "v{{version}}"
|
||||
git push origin "v{{version}}"
|
||||
|
||||
cargo publish
|
||||
|
|
Loading…
Reference in a new issue