From f69dcb13878695d5687c0e8edd691cf77dbd6092 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Sat, 30 Apr 2022 12:07:54 -0300 Subject: [PATCH] ci: Enable tag-based release workflow --- .github/workflows/release.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 059b17a..cd0f469 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,8 @@ name: Release on: - #push: - # tags: - # - "v*" - workflow_dispatch: {} + push: + tags: + - "v*" jobs: cargo_publish: @@ -26,6 +25,12 @@ jobs: command: install args: cargo-workspaces + - name: Publish to Crates.io + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: | + cargo workspaces publish --from-git + github_release: name: Create GitHub Release needs: [cargo_publish]