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
|
cargo run -- api energy-sites
|
||||||
|
|
||||||
publish version:
|
publish version:
|
||||||
# BSD sed
|
git diff-index --quiet HEAD
|
||||||
sed -i '' "s/^version = \".*\"$/version = \"{{version}}\"/" Cargo.toml
|
|
||||||
|
|
||||||
git add Cargo.toml
|
# BSD sed
|
||||||
git commit -m "chore: v{{version}}"
|
sed -i '' "s/^version = \".*\"$/version = \"{{version}}\"/" Cargo.toml
|
||||||
git tag "v{{version}}"
|
|
||||||
git push origin "v{{version}}"
|
|
||||||
|
|
||||||
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