File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Cratesio Publish
2+ on :
3+ release :
4+ types : [published]
5+
6+ jobs :
7+ publish :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v2
12+ - uses : actions-rs/toolchain@v1
13+ with :
14+ toolchain : stable
15+ override : true
16+
17+ - name : get version from tag
18+ id : get_version
19+ run : |
20+ realversion="${GITHUB_REF/refs\/tags\//}"
21+ realversion="${realversion//v/}"
22+ echo "::set-output name=VERSION::$realversion"
23+
24+ - name : Set the version for publishing
25+ uses : ciiiii/toml-editor@1.0.0
26+ with :
27+ file : " Cargo.toml"
28+ key : " package.version"
29+ value : " ${{ steps.get_version.outputs.VERSION }}"
30+
31+ - uses : katyo/publish-crates@v1
32+ with :
33+ registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
34+ args : --allow-dirty
You can’t perform that action at this time.
0 commit comments