Release #35
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 | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Release version' | |
| required: true | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cancel previous run | |
| uses: styfle/cancel-workflow-action@0.12.1 | |
| with: | |
| access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Commit version | |
| run: | | |
| echo ${{ github.event.inputs.version }} > VERSION | |
| git add VERSION | |
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config --global user.name "GitHub Action" | |
| git commit -a -m "Releasing version ${{ needs.precheck.outputs.VERSION }}" | |
| git push origin main | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25.3' | |
| - name: Assemble | |
| uses: jreleaser/release-action@v2 | |
| with: | |
| arguments: assemble | |
| env: | |
| JRELEASER_PROJECT_VERSION: ${{ github.event.inputs.version }} | |
| JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: JReleaser assemble output | |
| if: always() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| retention-days: 1 | |
| name: jreleaser-assemble | |
| path: | | |
| out/jreleaser/trace.log | |
| out/jreleaser/output.properties | |
| - name: Release | |
| uses: jreleaser/release-action@v2 | |
| with: | |
| arguments: release | |
| env: | |
| JRELEASER_PROJECT_VERSION: ${{ github.event.inputs.version }} | |
| JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
| JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} | |
| JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} | |
| JRELEASER_BLUESKY_HOST: ${{ secrets.BLUESKY_HOST }} | |
| JRELEASER_BLUESKY_HANDLE: ${{ secrets.BLUESKY_HANDLE }} | |
| JRELEASER_BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }} | |
| JRELEASER_MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }} | |
| - name: JReleaser release output | |
| if: always() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| retention-days: 1 | |
| name: jreleaser-release | |
| path: | | |
| out/jreleaser/trace.log | |
| out/jreleaser/output.properties |