Skip to content

Commit

Permalink
Get before_publish hooks working
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Nov 15, 2024
1 parent cad1c6b commit 25c3f42
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,12 @@ snapshot:
version_template: '{{ .Version }}-{{.ShortCommit}}'

before_publish:
hooks:
- cmd: |
echo "Debug before_publish"
echo "REPOSITORY_OWNER='{{.Env.REPOSITORY_OWNER}}'"
echo "Prerelease='{{.Prerelease}}'"
echo "Skip upload evaluates to: '{{ if and (eq .Env.REPOSITORY_OWNER "ddev") (not .Prerelease) }}false{{ else }}true{{ end }}'"
- cmd: |
echo "Debug before_publish"
echo "REPOSITORY_OWNER='{{.Env.REPOSITORY_OWNER}}'"
echo "Prerelease='{{.Prerelease}}'"
echo "Skip upload evaluates to: '{{ if and (eq .Env.REPOSITORY_OWNER "ddev") (not .Prerelease) }}false{{ else }}true{{ end }}'"
output: true
aurs:
- name: "ddev"
Expand Down Expand Up @@ -355,13 +354,6 @@ aurs:
email: [email protected]

- name: "ddev-edge"
hooks:
pre:
- cmd: |
echo "Debug for ddev-edge:"
echo "REPOSITORY_OWNER='{{.Env.REPOSITORY_OWNER}}'"
echo "Prerelease='{{.Prerelease}}'"
echo "Skip upload evaluates to: '{{ if and (eq .Env.REPOSITORY_OWNER "ddev") (not .Prerelease) }}false{{ else }}true{{ end }}'"
ids:
- ddev
homepage: "https://github.com/ddev/ddev"
Expand Down

0 comments on commit 25c3f42

Please sign in to comment.