How do you create a GitHub Release with generated notes from a workflow?
BeginnerConceptDebugging, Cost, Monorepos & Releases
Answer
on:
push:
tags: ["v*.*.*"]
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: gh release create "$GITHUB_REF_NAME" --generate-notes --verify-tag dist/*.tar.gz
env:
GH_TOKEN: ${{ github.token }}
--generate-notes builds notes from merged PRs since the previous tag, grouped by labels configured in .github/release.yml. Add --prerelease for -rc tags.
More on Debugging, Cost, Monorepos & Releases
How do you enable debug logging, and what does each flag show?BeginnerWhat tools help you inspect a run from the terminal?BeginnerHow is GitHub Actions billed for private repos, and what are the multipliers?IntermediateName the top ways to reduce Actions minutes and wall-clock time.IntermediateHow do you build only the services that changed in a monorepo?AdvancedWhy are workflow-level `paths` filters problematic with required checks, and what is the fix?Intermediate