diff --git a/Cargo.lock b/Cargo.lock index 6315588..c80ab53 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1986,7 +1986,7 @@ dependencies = [ [[package]] name = "ibis" -version = "0.2.0" +version = "0.2.1-rc.1" dependencies = [ "activitypub_federation", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index e0ff808..814c6e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ibis" -version = "0.2.0" +version = "0.2.1-rc.1" edition = "2021" [features] @@ -88,18 +88,18 @@ diesel = { version = "2.2.6", default-features = false, features = [ "uuid", "r2d2", ] } -diesel-derive-newtype = { version = "2.1.2" } -diesel_migrations = { version = "2.2.0" } -doku = { version = "0.21.1" } -jsonwebtoken = { version = "9.3.0" } -leptos_axum = { version = "0.7.3" } +diesel-derive-newtype = "2.1.2" +diesel_migrations = "2.2.0" +doku = "0.21.1" +jsonwebtoken = "9.3.0" +leptos_axum = "0.7.3" bcrypt = "0.16.0" -diffy = { version = "0.4.0" } -enum_delegate = { version = "0.2.0" } -async-trait = { version = "0.1.85" } +diffy = "0.4.0" +enum_delegate = "0.2.0" +async-trait = "0.1.85" config = { version = "0.15.4", features = ["toml"] } -tower = { version = "0.5.2" } -tower-layer = { version = "0.3.3" } +tower = "0.5.2" +tower-layer = "0.3.3" reqwest = { version = "0.12.12", features = ["json", "cookies"] } futures = "0.3.31" env_logger = { version = "0.11.6", default-features = false } diff --git a/scripts/publish_release.sh b/scripts/publish_release.sh new file mode 100755 index 0000000..ed347e1 --- /dev/null +++ b/scripts/publish_release.sh @@ -0,0 +1,26 @@ +#!/bin/sh +set -e + +# Creating the new tag +new_tag="$1" +third_semver=$(echo $new_tag | cut -d "." -f 3) + +# Goto the upper route +CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" +cd "$CWD/../" + + +# Update crate versions +old_tag=$(grep version Cargo.toml | head -1 | cut -d'"' -f 2) +sed -i "s/version = \"$old_tag\"/version = \"$new_tag\"/g" Cargo.toml +git add Cargo.toml +cargo check +git add Cargo.lock + +# The commit +git commit -m"Version $new_tag" +git tag $new_tag + +# Push +git push origin $new_tag +git push