Semantic Release #46
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: Semantic Release | |
| # Fires after deploy-docs finishes on main, so the version-history and cache | |
| # commits are on the branch before semantic-release reads it. The bot commits | |
| # use [skip ci], so a push won't chain back here on its own. | |
| on: | |
| workflow_run: | |
| workflows: ["Build and Deploy Documentation"] | |
| types: [completed] | |
| branches: [main] | |
| jobs: | |
| release: | |
| # Skip if the deploy failed - don't tag a release from a broken build. | |
| if: github.event.workflow_run.conclusion == 'success' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source (release target) | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.workflow_run.head_branch }} | |
| - name: Perform release [${{ github.event.workflow_run.head_branch }}] | |
| uses: cycjimmy/semantic-release-action@v4 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |