Skip to content
Snippets Groups Projects
Commit eea939b3 authored by Patrick José Pereira's avatar Patrick José Pereira
Browse files

Add new release flow

parent 594be0c7
Branches
No related tags found
No related merge requests found
...@@ -16,6 +16,18 @@ jobs: ...@@ -16,6 +16,18 @@ jobs:
override: true override: true
- name: Build - name: Build
run: cargo 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: 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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment