Skip to content

Add workflow to publish release on tag #1

Add workflow to publish release on tag

Add workflow to publish release on tag #1

Workflow file for this run

name: Create GitHub release and publish on Crates.io
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
jobs:
publish:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v5
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
- name: Create a GitHub release
uses: softprops/action-gh-release@v2

Check failure on line 24 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
with:
generate_release_notes: true
draft: false