From 46271036f5a4909d7745368021bb07eb4093961b Mon Sep 17 00:00:00 2001 From: k1LoW Date: Thu, 20 Jun 2024 23:27:36 +0900 Subject: [PATCH 1/2] Update .goreleaser.yml --- .github/workflows/release-test.yml | 12 ++++++++---- .goreleaser/darwin.yml | 2 +- .goreleaser/linux.yml | 2 +- .goreleaser/windows.yml | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index e1eda87a5..24b5efe01 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -27,7 +27,6 @@ jobs: - name: Setup run: | - brew install goreleaser brew install sqlite3 - name: Install @@ -35,9 +34,14 @@ jobs: go install github.com/k1LoW/tbls@latest tbls version - - name: Release (dry-run) - run: | - goreleaser release --config .goreleaser/darwin.yml --clean --snapshot --skip-publish + - name: Run GoReleaser (dry-run) + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: --config .goreleaser/darwin.yml --clean --snapshot --skip=publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} linux-release-test: runs-on: ubuntu-latest diff --git a/.goreleaser/darwin.yml b/.goreleaser/darwin.yml index ee8f98619..c3f0a3041 100644 --- a/.goreleaser/darwin.yml +++ b/.goreleaser/darwin.yml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - go mod download @@ -34,7 +35,6 @@ checksum: snapshot: name_template: "{{ .Version }}-next" changelog: - skip: true sort: asc filters: exclude: diff --git a/.goreleaser/linux.yml b/.goreleaser/linux.yml index fb8813a13..6df0ce97c 100644 --- a/.goreleaser/linux.yml +++ b/.goreleaser/linux.yml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - go mod download @@ -42,7 +43,6 @@ checksum: snapshot: name_template: "{{ .Version }}-next" changelog: - skip: true sort: asc filters: exclude: diff --git a/.goreleaser/windows.yml b/.goreleaser/windows.yml index a9a53d579..88fca2d8f 100644 --- a/.goreleaser/windows.yml +++ b/.goreleaser/windows.yml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - go mod download @@ -37,7 +38,6 @@ checksum: snapshot: name_template: "{{ .Version }}-next" changelog: - skip: true sort: asc filters: exclude: From 83a36e1fd911b758c0c216d3a6f1303f9419042d Mon Sep 17 00:00:00 2001 From: k1LoW Date: Thu, 20 Jun 2024 23:32:20 +0900 Subject: [PATCH 2/2] Update goreleaser-action --- .github/workflows/release-test.yml | 6 +++--- .github/workflows/tagpr.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index 24b5efe01..943d8b5a1 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -35,7 +35,7 @@ jobs: tbls version - name: Run GoReleaser (dry-run) - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest @@ -70,7 +70,7 @@ jobs: tbls version - name: Run GoReleaser (dry-run) - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest @@ -112,7 +112,7 @@ jobs: tbls version - name: Run GoReleaser (dry-run) - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest diff --git a/.github/workflows/tagpr.yml b/.github/workflows/tagpr.yml index 5c28a2353..2422188a9 100644 --- a/.github/workflows/tagpr.yml +++ b/.github/workflows/tagpr.yml @@ -46,7 +46,7 @@ jobs: brew install sqlite3 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest @@ -89,7 +89,7 @@ jobs: sleep 20s - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest @@ -140,7 +140,7 @@ jobs: shell: bash - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest