Skip to content

Commit

Permalink
AUR skip_upload can go back to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Nov 15, 2024
1 parent 1debb7e commit ea17f76
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,13 @@ nfpms:
snapshot:
version_template: '{{ .Version }}-{{.ShortCommit}}'

before_publish:
- 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
#before_publish:
# - 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 All @@ -323,8 +323,8 @@ aurs:
maintainers:
- 'Randy Fay <[email protected]>'
license: "Apache 2"
# main ddev repo will only be uploaded on non-prerelease and ddev/ddev repo
skip_upload: '{{ if and (eq .Env.REPOSITORY_OWNER "ddev") (not .Prerelease) }}false{{ else }}true{{ end }}'
# main ddev repo will only be uploaded on non-prerelease
skip_upload: auto
private_key: '{{ .Env.AUR_SSH_PRIVATE_KEY }}'
# AUR_STABLE_GIT_URL should be something like ssh://[email protected]/ddev-bin.git or ssh://[email protected]/rfay-test-ddev-bin.git
git_url: '{{ .Env.AUR_STABLE_GIT_URL }}'
Expand Down Expand Up @@ -361,8 +361,8 @@ aurs:
maintainers:
- 'Randy Fay <[email protected]>'
license: "Apache 2"
# Always upload on ddev/ddev
skip_upload: '{{ if eq .Env.REPOSITORY_OWNER "ddev" }}false{{ else }}true{{ end }}'
# Always upload, even on prerelease
skip_upload: "false"
private_key: '{{ .Env.AUR_SSH_PRIVATE_KEY }}'
# AUR_EDGE_GIT_URL should be something like ssh://[email protected]/ddev-edge-bin.git or ssh://[email protected]/rfay-test-ddev-edge-bin.git
git_url: '{{ .Env.AUR_EDGE_GIT_URL }}'
Expand Down

0 comments on commit ea17f76

Please sign in to comment.