loadstar/.gitea/workflows/publish.yaml
Renovate 130304a525
Some checks failed
Cargo Build & Test / check-cargo-version (pull_request) Failing after 6s
Cargo Build & Test / Tests (pull_request) Successful in 1m27s
Cargo Build & Test / Test publish (pull_request) Successful in 18s
chore(deps): update actions/cache digest to 2cdf405
2024-10-08 00:02:34 +00:00

27 lines
816 B
YAML

name: Cargo Build & Test
on:
push:
branches:
- main
jobs:
can-publish:
container: git.kjan.de/actions/rust-node@sha256:49fb2dad7814507334a38ea36ec2852a552cebc5b421ec22295d8a01421cd435
name: Test publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: ⚡ Cache
uses: https://git.kjan.de/actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # 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