Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
30 lines
656 B
YAML
30 lines
656 B
YAML
on:
|
|
# workflow_run:
|
|
# workflows: ["Check SemVer compliance"]
|
|
# types:
|
|
# - completed
|
|
release:
|
|
types: [published]
|
|
|
|
name: Publish to crates.io on release
|
|
|
|
jobs:
|
|
prepare:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: katyo/publish-crates@v2
|
|
with:
|
|
dry-run: true
|
|
check-repo: ${{ github.event_name == 'push' }}
|
|
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
ignore-unpublished-changes: true
|