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 55
66env :
77 rust_toolchain : nightly-2022-04-07
8+ crate_name : embedded-svc
89
910jobs :
1011 publish :
2526 run : cargo login ${{ secrets.crates_io_token }}
2627 - name : Build | Publish
2728 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