Skip to content

Commit 1a56270

Browse files
committed
Added standard .travis.yaml
1 parent 35d5981 commit 1a56270

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js # Node.js based project
2+
node_js:
3+
- 12 # Level of Node.js to use
4+
cache:
5+
directories:
6+
- node_modules # Cache the node_modules folder for quicker build times
7+
script:
8+
- npm run build # Runs next build
9+
- npm run export # Runs next export and generates the out directory
10+
- touch out/.nojekyll # Creates a file telling Github not to build the project using Jekyll
11+
deploy:
12+
provider: pages # Informs Travis this is a deployment to GitHub Pages
13+
skip_cleanup: true # Prevents Travis from resetting the working directory made during the build
14+
github_token: $github_token # GitHub access token to use when pushing to the gh-pages branch
15+
local_dir: out # Directory to push to the gh-pages branch
16+
on:
17+
branch: master # Only deploy when the build is on master branch

0 commit comments

Comments
 (0)