Skip to content

Commit eea939b

Browse files
Add new release flow
Signed-off-by: Patrick José Pereira <[email protected]>
1 parent 594be0c commit eea939b

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/deploy.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ jobs:
1616
override: true
1717
- name: Build
1818
run: cargo build
19-
- uses: katyo/publish-crates@v1
19+
- name: Extract version from tag
20+
id: get_version
21+
run: echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}"
22+
- name: Login to crates.io
23+
uses: actions-rs/cargo@v1
2024
with:
21-
registry-token: ${{ secrets.CARGO }}
25+
command: login
26+
args: ${{ secrets.CARGO }}
27+
- name: Set and publish workspace crates
28+
run: |
29+
cargo install cargo-workspaces
30+
cargo workspaces version custom ${{ steps.get_version.outputs.version }} \
31+
--exact --yes --no-individual-tags \
32+
-m "Commit new release ${{ steps.get_version.outputs.version }}"
33+
cargo workspaces publish --yes --no-verify

0 commit comments

Comments
 (0)