ci: Enable tag-based release workflow
This commit is contained in:
parent
2a3fcfbc83
commit
5790a075e9
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
|
name: Release
|
||||||
on:
|
on:
|
||||||
#push:
|
push:
|
||||||
# tags:
|
tags:
|
||||||
# - "v*"
|
- "v*"
|
||||||
workflow_dispatch: {}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cargo_publish:
|
cargo_publish:
|
||||||
|
|
@ -26,6 +25,12 @@ jobs:
|
||||||
command: install
|
command: install
|
||||||
args: cargo-workspaces
|
args: cargo-workspaces
|
||||||
|
|
||||||
|
- name: Publish to Crates.io
|
||||||
|
env:
|
||||||
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
|
run: |
|
||||||
|
cargo workspaces publish --from-git
|
||||||
|
|
||||||
github_release:
|
github_release:
|
||||||
name: Create GitHub Release
|
name: Create GitHub Release
|
||||||
needs: [cargo_publish]
|
needs: [cargo_publish]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue