Skip to content

Commit 0b4fa97

Browse files
author
Meir Shpilraien (Spielrein)
authored
Fix publish CI (#322)
Fix publish CI
1 parent ed95b3b commit 0b4fa97

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/cratesio-publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,33 @@ jobs:
2828
key: "package.version"
2929
value: "${{ steps.get_version.outputs.VERSION }}"
3030

31+
- name: Set the version for redismodule-rs-macros-internals
32+
uses: ciiiii/[email protected]
33+
with:
34+
file: "Cargo.toml"
35+
key: "dependencies.redis-module-macros-internals"
36+
value: '{ path = "./redismodule-rs-macros-internals", version = "${{ steps.get_version.outputs.VERSION }}" }'
37+
3138
- name: Set the version for publishing on macros crate
3239
uses: ciiiii/[email protected]
3340
with:
3441
file: "redismodule-rs-macros/Cargo.toml"
3542
key: "package.version"
3643
value: "${{ steps.get_version.outputs.VERSION }}"
44+
45+
- name: Set the version for publishing on internal macros crate
46+
uses: ciiiii/[email protected]
47+
with:
48+
file: "redismodule-rs-macros-internals/Cargo.toml"
49+
key: "package.version"
50+
value: "${{ steps.get_version.outputs.VERSION }}"
51+
52+
- name: Publishing redismodule-rs-macros-internals
53+
uses: katyo/publish-crates@v1
54+
with:
55+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
56+
path: './redismodule-rs-macros-internals'
57+
args: --allow-dirty
3758

3859
- name: Publishing redismodule-rs
3960
uses: katyo/publish-crates@v1

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ linkme = "0.3"
103103
serde = { version = "1", features = ["derive"] }
104104
nix = "0.26"
105105
cfg-if = "1"
106-
redis-module-macros-internals = { path = "./redismodule-rs-macros-internals"}
106+
redis-module-macros-internals = { path = "./redismodule-rs-macros-internals" }
107107

108108
[dev-dependencies]
109109
anyhow = "1"
@@ -122,4 +122,3 @@ min-redis-compatibility-version-7-2 = []
122122
min-redis-compatibility-version-7-0 = []
123123
min-redis-compatibility-version-6-2 = []
124124
min-redis-compatibility-version-6-0 = []
125-

0 commit comments

Comments
 (0)