Skip to content

Commit

Permalink
try n
Browse files Browse the repository at this point in the history
  • Loading branch information
nikooo777 committed Feb 17, 2022
1 parent ebc4ebd commit 0b6aad0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@
builds:
- env:
- CGO_ENABLED=0
- IMPORTPATH="github.com/OdyseeTeam/gody-cdn"
- VERSIONSHORT="$(git describe --tags --always --dirty)"
- VERSIONLONG="$(git describe --tags --always --dirty --long)"
- COMMITMSG="${{ github.event.head_commit.message }}"
goos:
- linux
goarch:
- amd64
ldflags:
- -X "{{ .Env.IMPORTPATH }}/meta.semVersion={{ .Tag }}" -X "{{ .Env.IMPORTPATH }}/meta.version={{ .Env.VERSIONSHORT }}" -X "{{ .Env.IMPORTPATH }}/meta.versionLong={{ .Env.VERSIONLONG }}" -X "{{ .Env.IMPORTPATH }}/meta.commitMsg={{ .Env.COMMITMSG }}"
# ldflags:
# - -X "{{ .Env.IMPORTPATH }}/meta.semVersion={{ .Tag }}" -X "{{ .Env.IMPORTPATH }}/meta.version={{ .Env.VERSIONSHORT }}" -X "{{ .Env.IMPORTPATH }}/meta.versionLong={{ .Env.VERSIONLONG }}" -X "{{ .Env.IMPORTPATH }}/meta.commitMsg={{ .Env.COMMITMSG }}"
archives:
- id: zip
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
Expand Down

0 comments on commit 0b6aad0

Please sign in to comment.