codemp/.github/workflows/rust.yml
2024-09-11 18:13:21 +02:00

23 lines
428 B
YAML

name: rust
on:
push:
branches:
- stable
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo publish --locked --token ${{ secrets.CRATES_IO_TOKEN }}