File tree Expand file tree Collapse file tree 1 file changed +28
-4
lines changed
Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Original file line number Diff line number Diff line change 11on :
22 push :
3- # Pattern matched against refs/tags
43 branch : ["master"]
54
65name : Publish to crates.io
76
7+ env :
8+ CRATES_DEPLOY : false
9+
810jobs :
9- publish :
10- name : Publish
11+ build_and_test :
12+ name : Build the client
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v2
16+
17+ - name : Install Nightly toolchain
18+ uses : actions-rs/toolchain@v1
19+ with :
20+ profile : minimal
21+ toolchain : nightly
22+ override : true
23+
24+ - run : rustup toolchain list
25+ - uses : actions-rs/cargo@v1
26+ with :
27+ command : build
28+ args : --release --all-features
29+
30+ check_and_publish :
31+ name : Check semver and publish to crates.io
1132 runs-on : ubuntu-latest
1233 steps :
1334 - name : Checkout sources
2041 toolchain : nightly
2142 override : true
2243
23- - run : cargo publish -p tinydancer --token ${CRATES_TOKEN} --no-verify
44+ - name : Publish to crates.io
45+ if : " contains(${{ env.CRATES_DEPLOY }},'true')"
46+ run : cargo publish -p tinydancer --token ${CRATES_TOKEN} --no-verify
2447 env :
48+ CRATES_DEPLOY : ${{ secrets.CRATES_DEPLOY }}
2549 CRATES_TOKEN : ${{ secrets.CRATES_TOKEN }}
You can’t perform that action at this time.
0 commit comments