diff --git a/Cargo.toml b/Cargo.toml index 2ff496d..56a8b06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "steamr" -version = "0.3.0" +version = "0.3.1" description = "HTTP client library to communicate with Valve's Steam API" edition = "2021" homepage = "https://github.com/bellackn/steamr" diff --git a/Justfile b/Justfile index a6d3a59..d633650 100644 --- a/Justfile +++ b/Justfile @@ -14,3 +14,16 @@ build: doc: @ cargo doc --no-deps + +# Publish the crate on crates.io +release version: lint test + #!/usr/bin/env bash + read -n 1 -s -r -p "you're about to release {{version}} - press any button to continue" + echo 'updating version in Cargo.toml to {{version}}' + sed -i -e 's/^version = ".*"$/version = "{{version}}"/' Cargo.toml + echo 'committing changes' + git add . + git commit -m 'feat: update crate to version {{version}}' + git tag -a -s -m 'release version {{version}}' {{version}} + git push --tags +