From fa0918b592c99485b9a16eebd1420b5e16eef948 Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Tue, 18 Oct 2016 12:56:53 -0400 Subject: [PATCH 1/2] Prevent npm from outputting repo URL --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0d44141d7..c7d7d40e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,5 +31,5 @@ after_script: # Publish to gh-pages as most recent committer git config --global user.email $(git log --pretty=format:"%ae" -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 From bcfb4ea8c973c4e03e2a19f02882241529bb36ee Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Tue, 18 Oct 2016 12:57:12 -0400 Subject: [PATCH 2/2] Add docs for publishing the playground --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 9a6ec8035..51902d448 100644 --- a/README.md +++ b/README.md @@ -111,5 +111,17 @@ npm test 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 +``` + ## 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!