name: Release on: push: tags: - 'v*' jobs: goreleaser: runs-on: codeberg-small steps: - name: Checkout code uses: https://github.com/actions/checkout@v4 with: fetch-depth: 0 - name: Fetch tags run: git fetch --force --tags - name: Set up Go uses: https://github.com/actions/setup-go@v5 with: go-version: '1.24' cache: true - name: Run GoReleaser uses: https://github.com/goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: "~> v2" args: release --clean env: # Forgejo Actions injects GITEA_TOKEN for the workflow by default; # override with RELEASE_TOKEN secret if a longer-lived token is needed. GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN || secrets.GITEA_TOKEN }} GORELEASER_FORCE_TOKEN: gitea