Merge #608 #52
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-latest | |
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 meilisearch crate | |
run: cargo build --release | |
- name: Build meilisearch crate | |
run: |- | |
cd meilisearch-index-setting-macro | |
cargo build --release | |
- name: Login | |
run: cargo login ${{ secrets.CRATES_TOKEN }} | |
- name: Publish meilisearch-index-setting-macro crate to crates.io | |
run: |- | |
cd meilisearch-index-setting-macro | |
cargo publish | |
- name: Publish meilisearch crate to crates.io | |
run: cargo publish |