Skip to content

.github/workflows/publish.yaml #3

.github/workflows/publish.yaml

.github/workflows/publish.yaml #3

Workflow file for this run

on:

Check failure on line 1 in .github/workflows/publish.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yaml

Invalid workflow file

`publish` is not a valid event name
push:
tags:
- v*
- '[0-9]+.[0-9]+.[0-9]+'
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: swatinem/rust-cache@v2
- name: Publish
# https://doc.rust-lang.org/cargo/reference/config.html?highlight=CARGO_REGISTRY_TOKEN#credentials
run: >
cargo publish
--verbose
--locked
--token ${{ secrets.CARGO_PUBLISH_TOKEN }}