ci: Enable tag-based release workflow
This commit is contained in:
parent
03dbd81d12
commit
f69dcb1387
1 changed files with 9 additions and 4 deletions
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue