2017-09-10 22:07:28 +02:00
|
|
|
---
|
2017-11-27 01:55:59 +02:00
|
|
|
title: Environment
|
2017-09-10 22:07:28 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
### GitHub Token
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
GoReleaser requires a GitHub API token with the `repo` scope selected to
|
|
|
|
deploy the artifacts to GitHub.
|
|
|
|
You can create one [here](https://github.com/settings/tokens/new).
|
2017-09-10 22:07:28 +02:00
|
|
|
|
|
|
|
This token should be added to the environment variables as `GITHUB_TOKEN`.
|
|
|
|
Here is how to do it with Travis CI:
|
|
|
|
[Defining Variables in Repository Settings](https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings).
|
|
|
|
|
2017-11-27 01:50:49 +02:00
|
|
|
### dist folder
|
|
|
|
|
|
|
|
By default, GoReleaser will create its artifacts in the `./dist` folder.
|
|
|
|
If you must, you can change it by setting it in the `.goreleaser.yml` file:
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
# .goreleaser.yml
|
|
|
|
dist: another-folder-that-is-not-dist
|
|
|
|
```
|