File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 5
5
6
6
env :
7
7
rust_toolchain : nightly-2022-04-07
8
+ crate_name : embedded-svc
8
9
9
10
jobs :
10
11
publish :
25
26
run : cargo login ${{ secrets.crates_io_token }}
26
27
- name : Build | Publish
27
28
run : cargo publish --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort
29
+ - name : Get the crate version from cargo
30
+ run : |
31
+ version=$(cargo metadata --format-version=1 --no-deps | jq -r ".packages[] | select(.name == \"${{env.crate_name}}\") | .version")
32
+ echo "crate_version=$version" >> $GITHUB_ENV
33
+ echo "${{env.crate_name}} version: $version"
34
+ - name : Tag the new release
35
+ uses : rickstaa/action-create-tag@v1
36
+ with :
37
+ tag : v${{env.crate_version}}
38
+ message : " Release v${{env.crate_version}}"
You can’t perform that action at this time.
0 commit comments