We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 594be0c commit eea939bCopy full SHA for eea939b
.github/workflows/deploy.yml
@@ -16,6 +16,18 @@ jobs:
16
override: true
17
- name: Build
18
run: cargo build
19
- - uses: katyo/publish-crates@v1
+ - 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
24
with:
- 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