codemp/.github/workflows/rust.yml
2024-11-17 14:40:39 +01:00

23 lines
441 B
YAML

name: rust
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
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 }}