Add publish pipeline
This commit is contained in:
parent
23047dc855
commit
c76cb8196b
26
.gitea/workflows/publish.yaml
Normal file
26
.gitea/workflows/publish.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
name: Cargo Build & Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
can-publish:
|
||||
container: git.kjan.de/actions/rust-node
|
||||
name: Test publish
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: ⚡ Cache
|
||||
uses: https://git.kjan.de/actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target/release/deps
|
||||
target/release/build
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-loadstar
|
||||
- run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
|
||||
- run: cargo publish
|
Loading…
Reference in New Issue
Block a user