diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95540a5..7534084 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,6 +91,7 @@ jobs: runs-on: ubuntu-22.04 permissions: contents: write + issues: write if: github.event_name != 'pull_request' steps: - name: Checkout Repository @@ -104,3 +105,18 @@ jobs: major-label: "change" publish: ${{ github.ref_type == 'tag' }} collapse-after: 30 + + - name: Setup Golang Environment + uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + with: + go-version: stable + if: ${{ github.ref_type == 'tag' }} + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 + with: + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: ${{ github.ref_type == 'tag' }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..0514898 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,9 @@ +version: 2 +builds: + - skip: true + +changelog: + disable: true + +milestones: + - close: true