Skip to content

Initial import

Initial import #1

on:
push:
tags:
- "v0.[0-9]+.[0-9]+"
workflow_dispatch:
name: Publish release tag to crates.io
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check package version
run: |
cat Cargo.toml | gawk -v ver="$GITHUB_REF_NAME" -F= 'BEGIN {res=1;p=0} /^\[/ {p=0} /^\[package\]/ {p=1} /^version/ {if (p) {gsub(/[" ]/,"", $2); fver="v"$2; if (fver==ver) {res=0}}} END {exit res}'
- uses: dtolnay/rust-toolchain@stable
id: toolchain
targets: x86_64-unknown-linux-gnu

Check failure on line 23 in .github/workflows/publish-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-release.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
- run: cargo +${{steps.toolchain.outputs.name}} publish --target x86_64-unknown-linux-gnu
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}