You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-03 00:57:43 +02:00
docs: clarify token files a bit
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
@ -2,13 +2,15 @@
|
||||
|
||||
## API Token
|
||||
|
||||
GoReleaser requires an API token with the `repo` scope selected to deploy the artifacts to GitHub.
|
||||
You can create one [here](https://github.com/settings/tokens/new).
|
||||
GoReleaser requires an API token with the `repo` scope selected to deploy the
|
||||
artifacts to GitHub. You can create one
|
||||
[here](https://github.com/settings/tokens/new).
|
||||
|
||||
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:
|
||||
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:
|
||||
|
||||
```yaml
|
||||
# .goreleaser.yaml
|
||||
@ -16,6 +18,9 @@ env_files:
|
||||
github_token: ~/.path/to/my/github_token
|
||||
```
|
||||
|
||||
Note that the environment variable will be used if available, regardless of the
|
||||
`github_token` file.
|
||||
|
||||
## GitHub Enterprise
|
||||
|
||||
You can use GoReleaser with GitHub Enterprise by providing its URLs in the
|
||||
|
Reference in New Issue
Block a user