From 992678146528315b43ab62c2165156c0aae75f3f Mon Sep 17 00:00:00 2001 From: Harry Solovay Date: Thu, 3 Oct 2024 10:08:56 -0400 Subject: [PATCH] Crate Publish Workflow (#34) --- .github/workflows/publish.yaml | 19 +++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..da83bff --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,19 @@ +name: Publish +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - uses: dsherret/rust-toolchain-file@v1 + - run: cargo install cargo-edit + - run: | + VERSION=${GITHUB_REF_NAME#?} + cargo set-version $VERSION + - uses: katyo/publish-crates@v2 + with: + registry-token: ${{ secrets.CRATES_IO_TOKEN }} + args: --allow-dirty diff --git a/Cargo.lock b/Cargo.lock index 56d541e..5118ad4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1491,7 +1491,7 @@ dependencies = [ [[package]] name = "mina_mesh" -version = "0.1.0" +version = "0.0.0" dependencies = [ "aide", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 1c4834d..28ef164 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mina_mesh" -version = "0.1.0" +version = "0.0.0" authors = ["Mina Foundation"] edition = "2021" license = "Apache-2.0"