Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update crates io publish action #402

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/cratesio-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down