Release crate #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release crate | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: "version (no `v` prefix)" | |
required: true | |
default: "1.0.0" | |
jobs: | |
publish: | |
name: Publish Limitador crate to crates.io | |
runs-on: ubuntu-latest | |
steps: | |
- uses: abelfodil/protoc-action@v1 | |
with: | |
protoc-version: '3.19.4' | |
- uses: supercharge/[email protected] | |
with: | |
redis-version: 5 | |
- uses: actions/checkout@v4 | |
with: | |
ref: crate-v${{ github.event.inputs.version }} | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Check | |
run: cargo fmt --all -- --check && cargo clippy -- -D warnings | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Publish | |
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p limitador:${{ github.event.inputs.version }} |