Skip to content

Commit

Permalink
ci: automate cargo publish (#37)
Browse files Browse the repository at this point in the history
# Rationale for this change

This PR automates `cargo publish`.

# What changes are included in this PR?

`--dry-run` is removed and a crates token is added

# Are these changes tested?

Not possible.
  • Loading branch information
JayWhite2357 authored Jun 28, 2024
1 parent 73db57e commit 5b4b75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ fi
sed -i 's/version = "*.*.*" # DO NOT CHANGE THIS LINE! This will be automatically updated/version = "'${NEW_VERSION}'"/' Cargo.toml
sed -i 's/path = "[^"]*"/version = "'${NEW_VERSION}'"/g' Cargo.toml

cargo publish -p proof-of-sql-parser --dry-run
#cargo publish -p proof-of-sql --dry-run
cargo publish -p proof-of-sql-parser --token ${CRATES_TOKEN}
cargo publish -p proof-of-sql --token ${CRATES_TOKEN}

0 comments on commit 5b4b75a

Please sign in to comment.