diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index cdf01af..c560c6a 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -19,6 +19,13 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.19 + - + name: Set GOPATH + # temporary fix + # see https://github.com/actions/setup-go/issues/14 + run: | + echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV + shell: bash - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 @@ -26,6 +33,6 @@ jobs: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9c5caa7..9f23c95 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -4,3 +4,6 @@ builds: - all=-trimpath={{.Env.GOPATH}} ldflags: - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser + ignore: + - goos: windows + goarch: arm64