update for allow-dirty (#6) #21
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: | |
branches: | |
- master # Trigger on push to master branch | |
tags: | |
- 'v*' # Trigger when any tag is pushed | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
environment: CARGO_REGISTRY_TOKEN | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Publish to crates.io | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} | |
run: cargo publish --allow-dirty |