Skip to content

Merge pull request #24 from tomoikey/enhance/error_message #42

Merge pull request #24 from tomoikey/enhance/error_message

Merge pull request #24 from tomoikey/enhance/error_message #42

Workflow file for this run

name: Publish to crates.io
on:
push:
branches:
- main
paths:
- 'src/**'
jobs:
test_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build the project
run: cargo build --release
- name: Run tests
run: cargo test --release
- name: Publish to crates.io
if: success()
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish