File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments