Skip to content

Commit

Permalink
ci: upgrade Goreleaser to use v2 configuration (#1309)
Browse files Browse the repository at this point in the history
Signed-off-by: KeisukeYamashita <19yamashita15@gmail.com>
  • Loading branch information
KeisukeYamashita authored and tcsola committed Dec 17, 2024
1 parent d8258be commit 9ca4ca8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release ${{ inputs.new_tag == 'blank' && '--snapshot' || '' }}
version: ~> v2
args: release --clean ${{ inputs.new_tag == 'blank' && '--snapshot' || '' }}
workdir: server
env:
GORELEASER_CURRENT_TAG: ${{ inputs.new_tag == 'blank' && '0.0.0' || inputs.new_tag }}
Expand Down
6 changes: 4 additions & 2 deletions server/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: reearth
before:
hooks:
Expand Down Expand Up @@ -26,8 +28,8 @@ archives:
- goos: windows
format: zip
changelog:
skip: true
disable: true
release:
disable: true
snapshot:
name_template: "{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}"
version_template: "{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}"

0 comments on commit 9ca4ca8

Please sign in to comment.