Skip to content

Commit

Permalink
Merge pull request #494 from tj-actions/fix/usage-of-deprecated-archi…
Browse files Browse the repository at this point in the history
…ves.replacements

fix: usage of deprecated archives.replacements
  • Loading branch information
repo-ranger[bot] committed Jul 18, 2023
2 parents 03b66c9 + 22c090b commit a312178
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-go@v4
with:
Expand All @@ -26,7 +28,7 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --snapshot --rm-dist
args: release --snapshot --clean

- name: Capture x86_64 (64-bit) Linux binary
uses: actions/upload-artifact@v3
Expand Down
21 changes: 11 additions & 10 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,21 @@ builds:
ignore:
- goos: windows
goarm: '6'

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
Expand All @@ -44,10 +45,10 @@ brews:
- name: auto-doc
homepage: https://github.com/tj-actions/auto-doc
description: Generate markdown tables for your Github action and reusable workflow with ease.
tap:
repository:
owner: tj-actions
name: homebrew-tap
branch: main
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
license: "Apache-2.0"
folder: Formula
folder: Formula

0 comments on commit a312178

Please sign in to comment.