Skip to content

Release

Release #226

Workflow file for this run

---
name: Release
on:
workflow_run:
workflows: ["Build and test"]
branches: [main]
types:
- completed
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.75.0
id: version
env:
GITHUB_TOKEN: ${{ github.token }}
WITH_V: true
DEFAULT_BUMP: patch
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: go version
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Post status to Google Chat
if: ${{ always() }}
uses: containrrr/shoutrrr-action@v1
with:
url: "${{ secrets.WATCHTOWER_NOTIFICATION_URL }}"
message: "Released `${{ github.repository }}`@`${{ github.sha }}` as ${{ steps.version.outputs.tag }}: *${{ job.status }}*."