Merge pull request #302 from meilisearch/update-version-v0.9.0 #27
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: Publish to crates.io | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
publish: | |
name: Rust project | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hecrj/setup-rust-action@master | |
with: | |
rust-version: stable | |
- name: Check release validity | |
run: sh .github/scripts/check-release.sh | |
- name: Build | |
run: cargo build --release -p charabia | |
- name: Login | |
run: cargo login ${{ secrets.CRATES_TOKEN }} | |
- name: Publish to crates.io | |
run: cargo publish -p charabia |