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
|
||||
@@ -3,8 +3,8 @@ name: Test the running changes
|
||||
on:
|
||||
push:
|
||||
branches: [ "dev" ]
|
||||
#pull_request:
|
||||
# branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
@@ -15,8 +15,6 @@ jobs:
|
||||
runs-on: rust-latest
|
||||
|
||||
steps:
|
||||
#- run: apt-get update -y
|
||||
#- uses: actions/checkout@v6
|
||||
- run: git clone https://git.jlux.dev/${{ gitea.repository }} . && git checkout ${{ gitea.ref_name }}
|
||||
- run: cargo build --verbose
|
||||
- run: cargo clippy -- -D warnings
|
||||
|
||||
Reference in New Issue
Block a user