2024-09-09 19:48:50 +02:00
|
|
|
name: rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-11-17 14:33:57 +01:00
|
|
|
tags:
|
2024-11-17 14:40:39 +01:00
|
|
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
2024-09-09 19:48:50 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: arduino/setup-protoc@v3
|
2024-09-10 14:51:58 +02:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
2024-09-09 19:53:19 +02:00
|
|
|
- uses: actions/checkout@v4
|
2024-09-09 19:48:50 +02:00
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
2024-09-10 02:07:15 +02:00
|
|
|
- run: cargo publish --locked --token ${{ secrets.CRATES_IO_TOKEN }}
|