From f208ccfc9bb5ac032bae2838a74d3121c84d9f7b Mon Sep 17 00:00:00 2001 From: Joii Date: Wed, 3 Sep 2025 10:57:01 +0800 Subject: [PATCH 1/2] Update Version to 0.6.2 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a4c46cc..917382d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sparse-merkle-tree" -version = "0.6.1" +version = "0.6.2" authors = ["jjy "] edition = "2018" license = "MIT" From ded2ccd8eb0109809dcb02789f06e920fa2652ba Mon Sep 17 00:00:00 2001 From: Joii Date: Wed, 3 Sep 2025 11:10:58 +0800 Subject: [PATCH 2/2] Add trust publish --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ Makefile | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c2b85cd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Release + +on: + release: + types: [created] + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + permissions: + id-token: write # Required for OIDC token exchange + steps: + - uses: actions/checkout@v1 + with: + submodules: true + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - run: | + make publish-crate + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} \ No newline at end of file diff --git a/Makefile b/Makefile index 278c4f7..12bfdd7 100644 --- a/Makefile +++ b/Makefile @@ -33,3 +33,6 @@ test-cxx-build: test-blake2b-ref: cargo test --no-default-features --features="std","with-blake2b-ref" + +publish-crate: + cargo publish \ No newline at end of file