From 08aeb02075b058d41568e013f5917965eac888b0 Mon Sep 17 00:00:00 2001 From: Sean Chen Date: Wed, 3 Jan 2024 11:42:14 -0600 Subject: [PATCH] fix: typo in Cargo.toml + switch to tag branch for publishing crates (#1024) * Fix typo in cargo.toml * CI: use ref to checkout to tag branch for publish * CI: use ref for gh-release as well --------- Co-authored-by: Farhad Shabani --- .github/workflows/release.yaml | 4 ++++ Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 86282f360..50c7ca721 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,6 +43,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.event.ref }} - name: Cache cargo dependencies uses: Swatinem/rust-cache@v2 - name: Install cargo-release @@ -60,6 +62,8 @@ jobs: contents: write steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.ref }} - uses: taiki-e/create-gh-release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index ac2d39628..d4df501c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,7 @@ rstest = "0.18.2" schemars = { version = "0.8.15" } sha2 = { version = "0.10.8", default-features = false } serde = { version = "1.0", default-features = false } -serde_json = { package = "serde-json-wasm", version = "1.0.0" , default-features = false } +serde_json = { package = "serde-json-wasm", version = "1.0.0", default-features = false } subtle-encoding = { version = "0.5", default-features = false } # ibc dependencies