name: Release Workflow on: workflow_dispatch: push: tags: - '*' jobs: goreleaser: name: GoReleaser Job runs-on: ubuntu-latest timeout-minutes: 60 steps: - name: Clean Up Actions Tools Cache run: rm -rf /opt/hostedtoolcache - name: Checkout uses: actions/checkout@v6.0.1 with: fetch-depth: 0 - name: Configure Git run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - name: Set Up Go uses: actions/setup-go@v6.1.0 with: go-version-file: go.mod check-latest: true - name: Set Up QEMU uses: docker/setup-qemu-action@v3.7.0 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3.11.1 - name: Authenticate to GitHub Container Registry uses: docker/login-action@v3.6.0 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Authenticate to DockerHub Container Registry uses: docker/login-action@v3.6.0 with: registry: docker.io username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6.4.0 with: distribution: goreleaser version: "~> v2" args: "release --clean --timeout 60m" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} DOCKER_CLI_EXPERIMENTAL: "enabled"