Skip to content

Check code and publish new version on crate.io #4

Check code and publish new version on crate.io

Check code and publish new version on crate.io #4

Workflow file for this run

name: check-and-publish
run-name: Check code and publish new version on crate.io
on: [workflow_dispatch]
env:
CARGO_TERM_COLOR: always
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run cargo tests
run: cargo test --test tests
publish:
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v4
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
dry-run: true