Skip to content

Publish crate

Publish crate #1

name: Publish crate
on: workflow_dispatch
jobs:
publish-crate:

Check failure on line 6 in .github/workflows/publish-crate.yaml

View workflow run for this annotation

GitHub Actions / Publish crate

Invalid workflow file

The workflow is not valid. .github/workflows/publish-crate.yaml (Line: 6, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: ["build-binary", "publish-docker"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Select Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Publish to crates.io
uses: actions-rs/cargo@v1
with:
command: publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}