-
Notifications
You must be signed in to change notification settings - Fork 66
70 lines (60 loc) · 2.14 KB
/
cratesio-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Cratesio Publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: get version from tag
id: get_version
run: |
realversion="${GITHUB_REF/refs\/tags\//}"
realversion="${realversion//v/}"
echo "::set-output name=VERSION::$realversion"
- name: Set the version for publishing
uses: ciiiii/[email protected]
with:
file: "Cargo.toml"
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: "${{ 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
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
args: --allow-dirty
- name: Publishing redismodule-rs-macros
uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
path: './redismodule-rs-macros'
args: --allow-dirty