Skip to content

Commit

Permalink
Add new release flow
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Jul 18, 2024
1 parent 77d45a2 commit 48ba9ea
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ jobs:
override: true
- name: Build
run: cargo build
- uses: katyo/publish-crates@v1
- name: Extract version from tag
id: get_version
run: echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}"
- name: Login to crates.io
uses: actions-rs/cargo@v1
with:
registry-token: ${{ secrets.CARGO }}
command: login
args: ${{ secrets.CARGO }}
- name: Set and publish workspace crates
run: |
cargo install cargo-workspaces
cargo workspaces version custom ${{ steps.get_version.outputs.version }} \
--exact --yes --no-individual-tags \
-m "Commit new release ${{ steps.get_version.outputs.version }}"
cargo workspaces publish --yes --no-verify

0 comments on commit 48ba9ea

Please sign in to comment.