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"