release action, convert to library crate, bump version to 0.1.0
This commit is contained in:
19
.gitea/workflows/cargo-release.yml
Normal file
19
.gitea/workflows/cargo-release.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Create release package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: rust-latest
|
||||
|
||||
steps:
|
||||
- run: git clone https://git.jlux.dev/${{ gitea.repository }} . && git checkout ${{ gitea.ref_name }}
|
||||
- run: cargo build --verbose --release
|
||||
- run: export CARGO_REGISTRIES_GITEA_TOKEN=${{ secrets.CARGO_BEARER_TOKEN }}
|
||||
- run: cargo publish --registry gitea
|
||||
Reference in New Issue
Block a user