From 2913d92b6e81242a6bc2b33c89dc496b1253ecd7 Mon Sep 17 00:00:00 2001 From: josh rotenberg Date: Tue, 10 Dec 2024 08:35:03 -0800 Subject: [PATCH] update crates io publish action --- .github/workflows/cratesio-publish.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cratesio-publish.yml b/.github/workflows/cratesio-publish.yml index db2e0290..e4d38bb5 100644 --- a/.github/workflows/cratesio-publish.yml +++ b/.github/workflows/cratesio-publish.yml @@ -8,42 +8,39 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: toolchain: stable override: true - - name: get version from tag + - name: Get version from tag id: get_version - run: | - realversion="${GITHUB_REF/refs\/tags\//}" - realversion="${realversion//v/}" - echo "::set-output name=VERSION::$realversion" + uses: jannemattila/get-version-from-tag@v4 - name: Set the version for publishing - uses: ciiiii/toml-editor@1.0.0 + uses: colathro/toml-editor@1.1.0 with: file: "Cargo.toml" key: "package.version" - value: "${{ steps.get_version.outputs.VERSION }}" + value: "${{ steps.get_version.outputs.version }}" - name: Set the version for redismodule-rs-macros-internals - uses: ciiiii/toml-editor@1.0.0 + uses: colathro/toml-editor@1.1.0 with: file: "Cargo.toml" key: "dependencies.redis-module-macros-internals" value: "${{ steps.get_version.outputs.VERSION }}" - name: Set the version for publishing on macros crate - uses: ciiiii/toml-editor@1.0.0 + uses: colathro/toml-editor@1.1.0 with: file: "redismodule-rs-macros/Cargo.toml" key: "package.version" value: "${{ steps.get_version.outputs.VERSION }}" - name: Set the version for publishing on internal macros crate - uses: ciiiii/toml-editor@1.0.0 + uses: colathro/toml-editor@1.1.0 with: file: "redismodule-rs-macros-internals/Cargo.toml" key: "package.version"