-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add goreleaser configuration to push Windows package to Chocolatey #1879
Conversation
cccb0f5
to
6753e76
Compare
Looks like goreleaser needs a bit more:
|
Looks like adding # Can be used to change the archive formats for specific GOOSs.
# Most common use case is to archive as zip on Windows.
format_overrides:
- # Which GOOS to override the format for.
goos: windows
# The format to use for the given GOOS.
#
# Valid options are `tar.gz`, `tgz`, `tar.xz`, `txz`, tar`, `gz`, `zip`, `binary`, and `none`.
format: zip should fix it per goreleaser/goreleaser#4450 |
.goreleaser.yml
Outdated
license_url: "https://github.com/authzed/spicedb/blob/main/LICENSE" | ||
require_license_acceptance: false | ||
project_source_url: "https://github.com/authzed/spicedb" | ||
docs_url: "https://docs.authzed.com" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.goreleaser.yml
Outdated
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}" | ||
source_repo: "https://push.chocolatey.org/" | ||
skip_publish: false | ||
goamd64: "v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove any properties that are the default for better signal/noise ratio:
- goamd64
- skip_publish
- require_license_acceptance
ff4b549
to
ba76931
Compare
.github/workflows/security.yaml
Outdated
@@ -1,6 +1,6 @@ | |||
--- | |||
name: "Security" | |||
on: # yamllint disable-line rule:truthy | |||
on: # yamllint disable-line rule:truthy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
once again haha
.github/workflows/release.yaml
Outdated
@@ -45,4 +76,6 @@ jobs: | |||
HOMEBREW_TAP_GITHUB_TOKEN: "${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}" | |||
GORELEASER_KEY: "${{ secrets.GORELEASER_KEY }}" | |||
GEMFURY_PUSH_TOKEN: "${{ secrets.GEMFURY_PUSH_TOKEN }}" | |||
- name: "Release snap" | |||
env: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this an accident? this "step" has nothing to run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's super odd.... I'll revert; I wonder if I accidentally hit tab on Copilot
a7529a7
to
d7a8a0d
Compare
… as it needs to run on a windows machine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.