Created
April 14, 2026 15:27
-
-
Save mherman22/c25f976d8474c8591e0204c59f3f8616 to your computer and use it in GitHub Desktop.
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 Automation" | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version_type: | |
| description: "Version bump type" | |
| required: true | |
| default: "fix" | |
| type: choice | |
| options: | |
| - fix | |
| - minor | |
| - major | |
| release_stage: | |
| description: "Release stage" | |
| required: true | |
| default: "alpha" | |
| type: choice | |
| options: | |
| - alpha | |
| - beta | |
| - final | |
| - snapshot | |
| concurrency: | |
| group: release-automation | |
| cancel-in-progress: false | |
| jobs: | |
| release: | |
| name: Create Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Bump version | |
| id: bump | |
| uses: mherman22/semantic-version-bump-action@v2 | |
| with: | |
| version-type: ${{ inputs.version_type }} | |
| release-stage: ${{ inputs.release_stage }} | |
| - name: Generate changelog | |
| id: changelog | |
| uses: johnyherangi/create-release-notes@main | |
| with: | |
| head-ref: ${{ github.ref }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create release | |
| uses: mherman22/semantic-release-creator-action@v3.0.3 | |
| with: | |
| release-tag: ${{ steps.bump.outputs.release-tag }} | |
| changelog: ${{ steps.changelog.outputs.release-notes }} | |
| next-dev-version: ${{ steps.bump.outputs.next-dev-version }} | |
| stage-label: ${{ steps.bump.outputs.stage-label }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment