Merge pull request #290 from rschamp/fix-playground

Prevent npm from outputting repo URL on gh-pages publish
This commit is contained in:
Ray Schamp 2016-10-18 13:01:42 -04:00 committed by GitHub
commit 0cf21b26f0
2 changed files with 13 additions and 1 deletions

View file

@ -31,5 +31,5 @@ after_script:
# Publish to gh-pages as most recent committer # Publish to gh-pages as most recent committer
git config --global user.email $(git log --pretty=format:"%ae" -n1) git config --global user.email $(git log --pretty=format:"%ae" -n1)
git config --global user.name $(git log --pretty=format:"%an" -n1) git config --global user.name $(git log --pretty=format:"%an" -n1)
npm run deploy -- -x -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git npm run --silent deploy -- -x -r $GH_PAGES_REPO
fi fi

View file

@ -111,5 +111,17 @@ npm test
npm run coverage npm run coverage
``` ```
## Publishing to GitHub Pages
```bash
npm run deploy
```
This will push the currently built playground to the gh-pages branch of the
currently tracked remote. If you would like to change where to push to, add
a repo url argument:
```bash
npm run deploy -- -r <your repo url>
```
## Donate ## Donate
We provide [Scratch](https://scratch.mit.edu) free of charge, and want to keep it that way! Please consider making a [donation](https://secure.donationpay.org/scratchfoundation/) to support our continued engineering, design, community, and resource development efforts. Donations of any size are appreciated. Thank you! We provide [Scratch](https://scratch.mit.edu) free of charge, and want to keep it that way! Please consider making a [donation](https://secure.donationpay.org/scratchfoundation/) to support our continued engineering, design, community, and resource development efforts. Donations of any size are appreciated. Thank you!