chore: make sure repo is clean before publish

This commit is contained in:
gak 2023-08-30 15:57:25 +10:00
parent d32c84a056
commit 969622f178
No known key found for this signature in database

View file

@ -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