Skip to content

Commit

Permalink
Try before_publish hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Nov 14, 2024
1 parent 0b69cb2 commit a4f4262
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,17 +306,17 @@ nfpms:
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 }}'"
aurs:
- name: "ddev"
hooks:
pre:
- cmd: |
echo "Debug for ddev (stable):"
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 a4f4262

Please sign in to comment.