Skip to content

Commit

Permalink
Fix publish CI (#322)
Browse files Browse the repository at this point in the history
Fix publish CI
  • Loading branch information
MeirShpilraien authored May 3, 2023
1 parent ed95b3b commit 0b4fa97
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cratesio-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,33 @@ jobs:
key: "package.version"
value: "${{ steps.get_version.outputs.VERSION }}"

- name: Set the version for redismodule-rs-macros-internals
uses: ciiiii/[email protected]
with:
file: "Cargo.toml"
key: "dependencies.redis-module-macros-internals"
value: '{ path = "./redismodule-rs-macros-internals", version = "${{ steps.get_version.outputs.VERSION }}" }'

- name: Set the version for publishing on macros crate
uses: ciiiii/[email protected]
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/[email protected]
with:
file: "redismodule-rs-macros-internals/Cargo.toml"
key: "package.version"
value: "${{ steps.get_version.outputs.VERSION }}"

- name: Publishing redismodule-rs-macros-internals
uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
path: './redismodule-rs-macros-internals'
args: --allow-dirty

- name: Publishing redismodule-rs
uses: katyo/publish-crates@v1
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ linkme = "0.3"
serde = { version = "1", features = ["derive"] }
nix = "0.26"
cfg-if = "1"
redis-module-macros-internals = { path = "./redismodule-rs-macros-internals"}
redis-module-macros-internals = { path = "./redismodule-rs-macros-internals" }

[dev-dependencies]
anyhow = "1"
Expand All @@ -122,4 +122,3 @@ min-redis-compatibility-version-7-2 = []
min-redis-compatibility-version-7-0 = []
min-redis-compatibility-version-6-2 = []
min-redis-compatibility-version-6-0 = []

0 comments on commit 0b4fa97

Please sign in to comment.