From c7b5df112bad7144e8e85a5db8b900c39e7929f2 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Mon, 12 Aug 2024 11:08:39 -0700 Subject: [PATCH] Automatically close milestones --- .github/workflows/ci.yml | 16 ++++++++++++++++ .goreleaser.yaml | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 .goreleaser.yaml 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