Skip to content

Commit

Permalink
Merge pull request #1033 from aziontech/goreleaser
Browse files Browse the repository at this point in the history
chore: update goreleaser archive section
  • Loading branch information
PatrickMenoti authored Dec 18, 2024
2 parents 845cffc + 0dd619f commit 9cb039d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
version: 2.3.2
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
Expand Down
14 changes: 8 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,23 @@ builds:
- arm64

archives:
# For non-Windows platforms (Linux, macOS, etc.), include completions and other files
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v{{ .Tag }}"
# Non-Windows platforms (Linux, macOS, etc.)
- id: non-windows
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v{{ .Tag }}"
format: tar.gz
files:
- completions/*
if: "{{ .Os != 'windows' }}"
- ./dist/azion-{{ .Os }}_{{ .Arch }}/azion

# For Windows, create a zip file containing all the .exe binaries for various architectures
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v{{ .Tag }}.zip"
# Windows platforms
- id: windows
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_v{{ .Tag }}.zip"
format: zip
files:
- ./dist/azion-windows - CGO_ENABLED=0_windows_386_sse2/azion.exe # 32-bit Windows (386)
- ./dist/azion-windows - CGO_ENABLED=0_windows_amd64_v1/azion.exe # 64-bit Windows (amd64)
- ./dist/azion-windows - CGO_ENABLED=0_windows_arm64_v8.0/azion.exe # ARM64 Windows
if: "{{ .Os == 'windows' }}"


before:
hooks:
Expand Down

0 comments on commit 9cb039d

Please sign in to comment.