diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c9dc2c..24ff268 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.21 - name: Build run: cd backend && go build -v ./... @@ -33,13 +33,13 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.18 + go-version: 1.21 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: version: latest workdir: backend - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/backend/.goreleaser.yaml b/backend/.goreleaser.yaml index 098366a..34c6c45 100644 --- a/backend/.goreleaser.yaml +++ b/backend/.goreleaser.yaml @@ -18,11 +18,17 @@ builds: - amd64 archives: - format: zip - name_template: "legendsbrowser-{{ .Version }}-{{ .Os }}" - replacements: - darwin: macos - linux: linux - windows: win + name_template: >- + legendsbrowser- + {{- .Version }}- + {{- if eq .Os "darwin" }}macos + {{- else if eq .Os "windows" }}win + {{- else }}{{ .Os }}{{ end }} + # name_template: "legendsbrowser-{{ .Version }}-{{ .Os }}" + # replacements: + # darwin: macos + # linux: linux + # windows: win changelog: sort: asc filters: