-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- "10.11.0" | ||
env: | ||
- CXX=g++-5 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-5 | ||
script: | ||
- npm test | ||
- npm build | ||
branches: | ||
only: | ||
- gh-pages | ||
- /.*/ | ||
deploy: | ||
- provider: script | ||
skip_cleanup: true | ||
script: bash .travis_publish | ||
on: | ||
tags: true | ||
- provider: npm | ||
email: "[email protected]" | ||
api_key: $NPM_AUTH_TOKEN | ||
on: | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# based on https://github.com/linkeddata/rdflib.js/blob/master/.travis_publish | ||
PUBLICATION_BRANCH=gh-pages | ||
|
||
# Checkout the branch | ||
REPO_PATH=$PWD | ||
pushd $HOME | ||
git clone --branch=$PUBLICATION_BRANCH https://${GITHUB_TOKEN}@github.com/$TRAVIS_REPO_SLUG.git publish 2>&1 > /dev/null | ||
cd publish | ||
|
||
# Update pages | ||
cp -r $REPO_PATH/dist/* . | ||
|
||
# Commit and push latest version | ||
git add . | ||
git config user.name "Travis" | ||
git config user.email "[email protected]" | ||
git commit -m "Updated distribution." | ||
git push -fq origin $PUBLICATION_BRANCH 2>&1 > /dev/null | ||
popd |