mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-21 21:07:19 +02:00
* Make sure to do required go mod init before continuing or goreleaser command fails. * how the release might look like -> what the release might look like * How does it look like -> What does it look like * you must therefore -> you must * Don't use GO111MODULES in example since it's so obsolete * modules -> verifiable builds * got you covered -> has you covered
1.3 KiB
1.3 KiB
GitHub
API Token
GoReleaser requires an API token with the repo
scope selected to deploy the artifacts to GitHub.
You can create one here.
This token should be added to the environment variables as GITHUB_TOKEN
.
Alternatively, you can provide the GitHub token in a file.
GoReleaser will check ~/.config/goreleaser/github_token
by default, but you can change that in the .goreleaser.yaml
file:
# .goreleaser.yaml
env_files:
github_token: ~/.path/to/my/github_token
GitHub Enterprise
You can use GoReleaser with GitHub Enterprise by providing its URLs in the
.goreleaser.yaml
configuration file. This takes a normal string or a template
value.
# .goreleaser.yaml
github_urls:
api: https://git.company.com/api/v3/
upload: https://git.company.com/api/uploads/
download: https://git.company.com/
# set to true if you use a self-signed certificate
skip_tls_verify: false
If none are set, they default to GitHub's public URLs.
Example release
Here's an example of what the release might look like:
