Skip to content

Commit 92be61e

Browse files
committed
chore: switch to cargo release
Signed-off-by: jeluard <jeluard@users.noreply.github.com>
1 parent 91317dc commit 92be61e

File tree

3 files changed

+35
-36
lines changed

3 files changed

+35
-36
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ jobs:
246246
- name: Publish crates
247247
env:
248248
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
249-
run: ./scripts/publish-crates
249+
run: cargo release publish --workspace --no-confirm
250250

251251
merge-artifacts:
252252
name: Merge build artifacts

release.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# cargo-release workspace configuration
2+
# https://github.com/crate-ci/cargo-release
3+
#
4+
# Usage:
5+
# cargo release publish --workspace # publish all publishable workspace crates
6+
# cargo release <level> # full release cycle (bump, tag, push, publish)
7+
#
8+
# Crates excluded from publishing have `publish = false` in their Cargo.toml:
9+
# - amaru (binary, depends on uplc-turbo)
10+
# - amaru-ledger (depends on uplc-turbo)
11+
# - amaru-stores (depends on uplc-turbo)
12+
# - amaru-consensus (depends on uplc-turbo)
13+
# - amaru-sim (simulation harness, not a library)
14+
#
15+
# Vendor crates (crates/vendor/) are workspace members and are published
16+
# together with the other workspace crates.
17+
18+
# Only allow releases from the main branch
19+
allow-branch = ["main"]
20+
21+
# Do not push git changes / create tags automatically in publish-only mode;
22+
# the full release workflow (cargo release <level>) still handles tagging.
23+
tag = true
24+
push = true
25+
publish = true
26+
27+
# All workspace crates share the same version (workspace.package.version),
28+
# so they are always released together.
29+
shared-version = "workspace"
30+
31+
# Let cargo-release verify the tree is clean before proceeding
32+
pre-release-commit-message = "chore: release {{version}}"
33+
tag-message = "Release {{version}}"
34+
tag-name = "v{{version}}"

scripts/publish-crates

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)