Skip to content

Commit

Permalink
docs(README): deploy from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Aug 27, 2017
1 parent 943c069 commit 67eaf64
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@ Show browser UI
SHOW_BROWSER=1 glitch-deploy
```

## Deploy from CI

`glitch-deploy` can be run as part of your continious integration, for example
using [Travis CI](https://travis-ci.org/).

You have to set the following environment variables

- `GITHUB_USERNAME`
- `GITHUB_PASSWORD`
- `GITHUB_REPO` _(e.g. `octocat/Hello-World`)_
- `GLITCH_DOMAIN` _(the name of your Glitch app)_

It’s recommended to create a separate GitHub user account for the deployment to
keep your own account’s credentials safe. If the given Glitch app already exists
then make sure the account is invited as collaborator. If the repository is
private you have to invite the account as collaborator on GitHub, too.

Happy auto-deploying to Glitch :)

## How it works

`glitch-deploy` is using [puppeteer](https://github.com/GoogleChrome/puppeteer)
Expand Down

0 comments on commit 67eaf64

Please sign in to comment.