Added CI
This commit is contained in:
parent
a7ae4cfff7
commit
450547be1b
2 changed files with 23 additions and 1 deletions
22
.forgejo/workflows/release.yml
Normal file
22
.forgejo/workflows/release.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Publish Crate
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Publish to Forgejo
|
||||
run: |
|
||||
cargo login --registry forgejo ${{ secrets.CARGO_TOKEN }}
|
||||
cargo publish --registry forgejo
|
||||
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -4,4 +4,4 @@ version = 4
|
|||
|
||||
[[package]]
|
||||
name = "demolib"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
|
|
|
|||
Loading…
Reference in a new issue