Merge pull request #15 from erdos-one/ci/setup-release-automation #1
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 Please | |
| # This workflow runs on every push to main and: | |
| # 1. Analyzes commits since the last release using Conventional Commits | |
| # 2. Creates/updates a Release PR with version bump and changelog | |
| # 3. When the Release PR is merged, creates a tag and GitHub release | |
| # 4. The tag triggers the GoReleaser workflow (release.yml) to build binaries | |
| # | |
| # Required Secret: GH_PAT with permissions: | |
| # - Actions: Read-only | |
| # - Contents: Read and write | |
| # - Pull requests: Read and write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }} |