Skip to content

Commit

Permalink
Release Rust crates
Browse files Browse the repository at this point in the history
  • Loading branch information
ia0 authored and reyammer committed Sep 26, 2024
1 parent b1f3df3 commit 19e4881
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion rust/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.1.0-rc.1-dev
## 0.1.0-rc.1

### Minor

Expand Down
4 changes: 2 additions & 2 deletions rust/cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rust/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "magika-cli"
version = "0.1.0-rc.1-dev"
version = "0.1.0-rc.1"
authors = ["Magika Developers <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand All @@ -20,7 +20,7 @@ anyhow = "1.0.86"
async-channel = "2.3.1"
clap = { version = "4.5.9", features = ["cargo", "derive", "string"] }
colored = "2.1.0"
magika = { version = "=0.1.0-rc.1-dev", path = "../lib", features = ["serde"] }
magika = { version = "=0.1.0-rc.1", path = "../lib", features = ["serde"] }
num_cpus = "1.16.0"
ort = "2.0.0-rc.5"
serde = { version = "1.0.204", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion rust/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.1.0-rc.1-dev
## 0.1.0-rc.1

### Minor

Expand Down
2 changes: 1 addition & 1 deletion rust/lib/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "magika"
version = "0.1.0-rc.1-dev"
version = "0.1.0-rc.1"
authors = ["Magika Developers <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand Down
3 changes: 2 additions & 1 deletion rust/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ set -e
[ -z "$(git status -s)" ] || error "Repository is not clean"

info "Removing all -dev suffixes (if any)"
sed -i 's/-dev"/"/' $(git ls-files '*/'{Cargo.{toml,lock},CHANGELOG.md})
sed -i 's/-dev"/"/' $(git ls-files '*/Cargo.*')
sed -i 's/-dev//' $(git ls-files '*/CHANGELOG.md')
if [ -n "$(git status -s)" ]; then
info "Creating a commit with those changes"
git commit -aqm'Release Rust crates'
Expand Down

0 comments on commit 19e4881

Please sign in to comment.