From 13473a1a187ce66f8710687629274fa35a30cec8 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Thu, 21 Apr 2022 11:00:30 +0200 Subject: [PATCH] Update goreleaser configuration --- .github/workflows/release.yml | 22 ++++++++++++---------- .goreleaser.yml | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85dfea6..5b00d79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,20 +11,22 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - - name: Checkout - uses: actions/checkout@v1 - - - name: Set up Go - uses: actions/setup-go@v1 + - + name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v2 with: go-version: 1.18 - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v1 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 with: + distribution: goreleaser version: latest args: release --rm-dist - key: ${{ secrets.YOUR_PRIVATE_KEY }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 6ba474e..bc207cf 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -37,6 +37,6 @@ builds: goarch: arm archives: - - name_template: "{{ tolower .ProjectName }}-{{ tolower .Os }}-{{ tolower .Arch }}{{ end }}" + - name_template: "{{ tolower .ProjectName }}-{{ tolower .Os }}-{{ tolower .Arch }}" format: binary