File tree Expand file tree Collapse file tree 1 file changed +27
-23
lines changed
Expand file tree Collapse file tree 1 file changed +27
-23
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to Cargo
2+
13on :
2- push :
3- # Pattern matched against refs/tags
4- tags :
5- - ' *' # Push events to every tag not containing /
6- workflow_dispatch :
7- name : Publish
8- jobs :
9- publish :
10- name : Publish
11- runs-on : ubuntu-latest
12- steps :
13- - name : Checkout sources
14- uses : actions/checkout@v2
15-
16- - name : Install stable toolchain
17- uses : actions-rs/toolchain@v1
18- with :
19- profile : minimal
20- toolchain : stable
21- override : true
22- - run : cargo publish --token ${CRATES_TOKEN}
23- env :
24- CRATES_TOKEN : ${{ secrets.CRATES_TOKEN }}
4+ push :
5+ tags :
6+ - ' *'
7+
8+ env :
9+ CRATES_TOKEN : ${{ secrets.CRATES_TOKEN }}
10+
11+ jobs :
12+ publish-crate :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Git checkout
16+ uses : actions/checkout@v3
17+
18+ - name : Install stable toolchain
19+ uses : actions-rs/toolchain@v1
20+ with :
21+ profile : minimal
22+ toolchain : stable
23+ override : true
24+
25+ - name : Publish to Cargo
26+ run : cargo publish --token ${CRATES_TOKEN}
27+ env :
28+ CRATES_TOKEN : ${{ secrets.CRATES_TOKEN }}
You can’t perform that action at this time.
0 commit comments