forked from kemitix/git-next
build: add publish-to-crates-io workflow
This commit is contained in:
parent
43c6e812dc
commit
9d11bb0e1f
1 changed files with 25 additions and 0 deletions
25
.forgejo/workflows/publish-to-crates-io.yml
Normal file
25
.forgejo/workflows/publish-to-crates-io.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Publish to crates.io
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Login
|
||||||
|
uses: https://git.kemitix.net/kemitix/rust@v0.3.1
|
||||||
|
with:
|
||||||
|
args: login "$CARGO_REGISTRY_TOKEN"
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
uses: https://git.kemitix.net/kemitix/rust@v0.3.1
|
||||||
|
with:
|
||||||
|
args: publish --registry crates-io --no-verify
|
Loading…
Reference in a new issue