Merge pull request #146 from bmad-code-org/refactor/extract-herdr-ada… #86
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| # Auto-publish on merge: when a version bump lands on `main`, create the matching | |
| # `vX.Y.Z` tag and GitHub release with notes from CHANGELOG.md. Idempotent — | |
| # `release.py publish` is a no-op when the tag already exists, so merges that | |
| # don't bump the version do nothing. | |
| on: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: write # create tags + releases | |
| jobs: | |
| publish: | |
| name: publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 # need all tags to detect whether vX.Y.Z already exists | |
| - name: Install uv | |
| uses: astral-sh/[email protected] | |
| - name: Create tag + GitHub release (idempotent) | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: uv run --no-project python scripts/release.py publish |