Skip to content

fix deprecation errors from goreleaser #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 31 additions & 29 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,37 @@ project_name: revealgo
before:
hooks:
- git submodule update --init --recursive
build:
binary: revealgo
main: cmd/revealgo/reveal.go
ldflags:
- -s -w -X github.com/yusukebe/revealgo.Version=v{{.Version}}
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
- arm
- arm64
ignore:
- goos: windows
goarch: arm
env:
- CGO_ENABLED=0
builds:
- binary: revealgo
main: cmd/revealgo/reveal.go
ldflags:
- -s -w -X github.com/yusukebe/revealgo.Version=v{{.Version}}
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
- arm
- arm64
ignore:
- goos: windows
goarch: arm
env:
- CGO_ENABLED=0
archives:
- name_template: "{{.Binary}}_{{ .Version }}_{{.Os}}-{{.Arch}}"
replacements:
amd64: 64bit
386: 32bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows
- name_template: >-
{{- .Binary}}_{{ .Version }}_{{.Os}}-{{.Arch}}
{{- if eq .Arch "amd64" }}64bit
{{- else if eq .Arch "386" }}32bit
{{- else if eq .Arch "arm" }}ARM
{{- else if eq .Arch "arm64" }}ARM64
{{- else if eq .Arch "darwin" }}macOS
{{- else if eq .Arch "linux" }}Linux
{{- else if eq .Arch "windows" }}Windows
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format: tar.gz
format_overrides:
- goos: windows
Expand All @@ -43,7 +45,7 @@ release:
draft: true
prerelease: auto
brews:
- tap:
- repository:
owner: yusukebe
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
Expand Down
4 changes: 2 additions & 2 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ local environment, a snapshot build can be done by:
```shell
$ git clone https://github.com/yusukebe/revealgo.git
$ cd revealgo
$ goreleaser build --snapshot --rm-dist
$ goreleaser build --snapshot --clean
$ tree dist
dist
├── config.yaml
Expand Down Expand Up @@ -72,7 +72,7 @@ GitHub, regardless of the branch it is associated with. The process goes as foll
2. The git tag is pushed to `revealgo`'s repository
3. A GitHub action will take care of the release process:
- Run linting
- Run `goreleaser release --rm-dist`
- Run `goreleaser release --clean`
- Publish new release as a [draft](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository)

Upon success, the maintainer will take care of updating the release information
Expand Down