ci: Enable tag-based release workflow

This commit is contained in:
Santiago Carmuega 2022-04-30 12:07:54 -03:00
parent 03dbd81d12
commit f69dcb1387

View file

@ -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]