From 2453048288afb003162860dc12f6e1edf9c5fd25 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 16 May 2025 01:50:43 +0800 Subject: [PATCH 1/4] build: config goreleaser --- .github/workflows/release.yml | 6 +++--- .goreleaser.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c5d32e3..cbf63b07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Base Build +name: Release on: push: @@ -22,13 +22,13 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ">=1.24.0" + go-version-file: "go.mod" - name: Build WebUI run: npm --prefix=./ui ci && npm --prefix=./ui run build - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest diff --git a/.goreleaser.yml b/.goreleaser.yml index 4d53fcdd..73e30a1e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -35,8 +35,8 @@ release: archives: - id: archive_noncgo - builds: [build_noncgo] - format: zip + ids: [build_noncgo] + format: ["zip"] files: - CHANGELOG.md - LICENSE.md @@ -46,7 +46,7 @@ checksum: name_template: "checksums.txt" snapshot: - name_template: "{{ incpatch .Version }}-next" + version_template: "{{ incpatch .Version }}-next" changelog: sort: asc From b7af3c10e4cdc8611a031f1f70682b33c905ab3e Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 16 May 2025 01:58:53 +0800 Subject: [PATCH 2/4] build: config goreleaser --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 73e30a1e..f43ef546 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -46,7 +46,7 @@ checksum: name_template: "checksums.txt" snapshot: - version_template: "{{ incpatch .Version }}-next" + name_template: "{{ incpatch .Version }}-next" changelog: sort: asc From 5edae845cb1c5538a7e276fd51602a6d70c192b1 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 16 May 2025 02:03:49 +0800 Subject: [PATCH 3/4] build: config goreleaser --- .goreleaser.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index f43ef546..8b4b64fe 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -35,8 +35,8 @@ release: archives: - id: archive_noncgo - ids: [build_noncgo] - format: ["zip"] + builds: [build_noncgo] + format: "zip" files: - CHANGELOG.md - LICENSE.md From b122bbced95220eac5e037be87d7b93b4d2dce12 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 16 May 2025 02:26:38 +0800 Subject: [PATCH 4/4] build: config goreleaser --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbf63b07..781f99a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,16 @@ jobs: go-version-file: "go.mod" - name: Build WebUI - run: npm --prefix=./ui ci && npm --prefix=./ui run build + run: | + npm --prefix=./ui ci + npm --prefix=./ui run build + npm cache clean --force + rm -rf ./ui/node_modules + + - name: Check disk usage + run: | + df -h + du -sh /opt/hostedtoolcache/go/* - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5