From 49f6513b7c4490d2ce81bb1d68231611e13e18a8 Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Wed, 25 Mar 2026 13:40:45 +0800 Subject: [PATCH 1/2] upgrade GitHub actions to support Node 24 --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 715e95f..7ae2c0f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 @@ -20,12 +20,12 @@ jobs: run: git fetch --force --tags - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version-file: 'go.mod' - name: Run GoReleaser in snapshot mode - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v7 if: github.event.pull_request with: version: latest @@ -34,7 +34,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser on a release tag - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v7 if: startsWith(github.ref, 'refs/tags/') with: version: latest From 8852ce81d28f8dc9b20aa0c378329ff7c472e58f Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Wed, 25 Mar 2026 14:56:44 +0800 Subject: [PATCH 2/2] update the goreleaser config file --- .goreleaser.yml => .goreleaser.yaml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) rename .goreleaser.yml => .goreleaser.yaml (60%) diff --git a/.goreleaser.yml b/.goreleaser.yaml similarity index 60% rename from .goreleaser.yml rename to .goreleaser.yaml index c6ddd93..4a45827 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yaml @@ -1,8 +1,14 @@ # This is the configuration for goreleaser -# Check the documentation at http://goreleaser.com for details +# Check the documentation at https://goreleaser.com for details + +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json + +version: 2 + before: hooks: - go mod tidy + builds: - id: idp-cli binary: idp-cli @@ -25,19 +31,24 @@ builds: gomod: proxy: true archives: - - + - formats: [tar.gz] + # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- - idp-cli_ + {{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + # use zip for windows archives format_overrides: - goos: windows - format: zip + formats: [zip] + checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ .Tag }}-dev" + version_template: "{{ .Tag }}-dev" changelog: sort: asc filters: