File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
publish-ts-reader :
10
- if : startsWith(github.ref, 'refs/tags/pkg-') || startsWith(github.ref, 'refs/tags/all-')
10
+ if : startsWith(github.ref, 'refs/tags/pkg-')
11
11
defaults :
12
12
run :
13
13
working-directory : " ./reader/ts"
@@ -25,11 +25,29 @@ jobs:
25
25
env :
26
26
NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
27
27
28
+ publish-rs-reader :
29
+ runs-on : ubuntu-latest
30
+ if : startsWith(github.ref, 'refs/tags/pkg-')
31
+ defaults :
32
+ run :
33
+ working-directory : " ./reader/rust"
34
+ steps :
35
+ - name : Checkout Code
36
+ uses : actions/checkout@v4
37
+ - name : Set version
38
+ run : |
39
+ VERSION=$(echo "${{ github.ref_name }}" | sed 's/^pkg-//')
40
+ sed -i "s/version = \"0.0.0\"/version = \"$VERSION\"/" Cargo.toml
41
+ - name : Cargo Login
42
+ run : cargo login ${{secrets.CRATES_IO_PUBLISH}}
43
+ - name : Publish crate
44
+ run : cargo publish
45
+
28
46
publish-defintions :
29
47
permissions :
30
48
contents : write
31
49
packages : read
32
- if : startsWith(github.ref, 'refs/tags/def-') || startsWith(github.ref, 'refs/tags/all-')
50
+ if : startsWith(github.ref, 'refs/tags/def-')
33
51
runs-on : ubuntu-latest
34
52
steps :
35
53
- name : Checkout Code
39
57
run : |
40
58
zip -r definitions.zip definitions
41
59
42
-
43
60
- name : Create GitHub Release
44
61
uses : softprops/action-gh-release@v2
45
62
with :
You can’t perform that action at this time.
0 commit comments