Skip to content

Push on crates.io

Push on crates.io #4

Workflow file for this run

name: Push on crates.io
on: [workflow_dispatch]
env:
CARGO_TERM_COLOR: always
permissions:
contents: write
jobs:
cratesio:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./cli
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --release
- name: Run tests
run: RUST_TEST_THREADS=1 cargo test --verbose
- name: Publish to crates.io
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --allow-dirty