name: release on: push: tags: - "v2.*" workflow_call: inputs: args: description: "Extra arguments to pass goreleaser" default: "" required: false type: string jobs: release: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v4 with: go-version: "1.21" - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3 with: distribution: goreleaser version: latest args: release ${{ inputs.args }} --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}