Skip to content

Commit

Permalink
docs: document GH_TOKEN #1224
Browse files Browse the repository at this point in the history
Close #1224
  • Loading branch information
develar committed Mar 25, 2017
1 parent be698a8 commit 4c83b3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/Publishing Artifacts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Travis and AppVeyor support publishing artifacts. But it requires additional configuration for each CI (since AppVeyor can build only Windows and Travis only macOS / Linux).

`electron-builder` allows you to just add `GH_TOKEN` environment variable and that's all.
`electron-builder` allows you to just set `GH_TOKEN` environment variable and that's all.

Currently, [GitHub Releases](https://help.github.com/articles/about-releases/), [Amazon S3](https://aws.amazon.com/s3/) and [Bintray](https://bintray.com) are supported.

Expand Down Expand Up @@ -49,13 +49,6 @@ But please consider using automatic rules instead of explicitly specifying `publ
```
and if you run `npm run release`, a release will be drafted (if doesn't already exist) and artifacts published.

## GitHub Repository and Bintray Package

Detected automatically using:
* [repository](https://docs.npmjs.com/files/package.json#repository) in the application or development `package.json`,
* if not set, env `TRAVIS_REPO_SLUG` or `APPVEYOR_ACCOUNT_NAME`/`APPVEYOR_PROJECT_NAME` or `CIRCLE_PROJECT_USERNAME`/`CIRCLE_PROJECT_REPONAME`,
* if no env, from `.git/config` origin url.

## Publish Options

See [GithubOptions](#GithubOptions), [S3Options](#S3Options), [BintrayOptions](#BintrayOptions).
Expand All @@ -68,6 +61,13 @@ Can be specified in the [configuration options](https://github.com/electron-user
}
```

## GitHub Repository and Bintray Package

Detected automatically using:
* [repository](https://docs.npmjs.com/files/package.json#repository) in the application or development `package.json`,
* if not set, env `TRAVIS_REPO_SLUG` or `APPVEYOR_ACCOUNT_NAME`/`APPVEYOR_PROJECT_NAME` or `CIRCLE_PROJECT_USERNAME`/`CIRCLE_PROJECT_REPONAME`,
* if no env, from `.git/config` origin url.

<!-- do not edit. start of generated block -->
## API

Expand Down
3 changes: 3 additions & 0 deletions packages/electron-builder-http/src/publishOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export interface PublishConfiguration {

/**
* GitHub options.
*
* GitHub [personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/) is required. You can generate by going to [https://github.com/settings/tokens/new](https://github.com/settings/tokens/new). The access token should have the repo scope/permission.
* Define `GH_TOKEN` environment variable.
*/
export interface GithubOptions extends PublishConfiguration {
/**
Expand Down

0 comments on commit 4c83b3f

Please sign in to comment.