Skip to content

ci: Add workflow_dispatch for testing #1

ci: Add workflow_dispatch for testing

ci: Add workflow_dispatch for testing #1

# Runs `cargo publish --dry-run` before another release
name: Check crate publishing works
on:
pull_request:
branches: [ release ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
cargo_publish_dry_run:
name: Publishing works
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install stable Rust
uses: dtolnay/rust-toolchain
- name: Get Cargo version
id: cargo_version
run: echo "::set-output name=version::$(cargo -V | tr -d ' ')"
shell: bash
- name: Run `cargo publish --dry-run`
run: cargo publish --dry-run