Skip to content

Fix the release error#10

Open
suzuki-shunsuke wants to merge 5 commits intosheepla:mainfrom
suzuki-shunsuke:fix-release-error
Open

Fix the release error#10
suzuki-shunsuke wants to merge 5 commits intosheepla:mainfrom
suzuki-shunsuke:fix-release-error

Conversation

@suzuki-shunsuke
Copy link

@suzuki-shunsuke suzuki-shunsuke commented Mar 4, 2025

Problem

The release v0.4.0 failed.

https://github.com/sheepla/qiitaz/releases/tag/v0.4.0

No asset was released.

image

The release workflow failed.

https://github.com/sheepla/qiitaz/actions/runs/13642969743/job/38136539923

Run goreleaser/goreleaser-action@v2
Downloading https://github.com/goreleaser/goreleaser/releases/download/v2.7.0/goreleaser_Linux_x86_64.tar.gz
Extracting GoReleaser
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/2ef527ca-ab8c-4ad7-8586-b54f3378f8ba -f /home/runner/work/_temp/cef4337c-439a-4ba0-9496-6addd193e966
GoReleaser latest installed successfully
v0.4.0 tag found for commit 'c8da471'
/opt/hostedtoolcache/goreleaser-action/2.7.0/x64/goreleaser release --rm-dist
  ⨯ command failed                                   error=unknown flag: --rm-dist
Error: The process '/opt/hostedtoolcache/goreleaser-action/2.7.0/x64/goreleaser' failed with exit code 1

What

  • ci: replace --rm-dist with --clean
  • chore(goreleaser): specify version
  • chore: replace replacements with name_template
  • chore: replace format_overrides.format with format_overrides.formats
  • chore: replace snapshot.name_template with version_template

--rm-dist was deprecated.
So this pull request replaces it with --clean.

Furthermore, this pull request fixes deprecation warnings of .goreleaser.yaml.

https://goreleaser.com/deprecations/

Test

goreleaser check

Before:

$ goreleaser check
  • only  version: 2  configuration files are supported, yours is  version: 0 , please update your configuration
  ⨯ command failed                                   error=only  version: 2  configuration files are supported, yours is  version: 0 , please update your configuration

After:

$ goreleaser check
  • checking                                 path=.goreleaser.yaml
  • 1 configuration file(s) validated
  • thanks for using GoReleaser!

Release test

https://github.com/suzuki-shunsuke/qiitaz/actions/runs/13643335528/job/38137585398
https://github.com/suzuki-shunsuke/qiitaz/releases/tag/v0.4.1-0

The release succeeded.
And the format of asset names isn't changed.

Before:

$ gh release view --json assets --jq ".assets[].name" -R sheepla/qiitaz v0.3.0
checksums.txt
qiitaz_0.3.0_Darwin_arm64.tar.gz
qiitaz_0.3.0_Darwin_x86_64.tar.gz
qiitaz_0.3.0_Linux_arm64.tar.gz
qiitaz_0.3.0_Linux_i386.tar.gz
qiitaz_0.3.0_Linux_x86_64.tar.gz
qiitaz_0.3.0_Windows_arm64.zip
qiitaz_0.3.0_Windows_i386.zip
qiitaz_0.3.0_Windows_x86_64.zip

After:

$ gh release view --json assets --jq ".assets[].name" -R suzuki-shunsuke/qiitaz v0.4.1-0
checksums.txt
qiitaz_0.4.1-0_Darwin_arm64.tar.gz
qiitaz_0.4.1-0_Darwin_x86_64.tar.gz
qiitaz_0.4.1-0_Linux_arm64.tar.gz
qiitaz_0.4.1-0_Linux_i386.tar.gz
qiitaz_0.4.1-0_Linux_x86_64.tar.gz
qiitaz_0.4.1-0_Windows_arm64.zip
qiitaz_0.4.1-0_Windows_i386.zip
qiitaz_0.4.1-0_Windows_x86_64.zip

@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review March 4, 2025 00:30
@suzuki-shunsuke suzuki-shunsuke changed the title fix release error Fix the release error Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant