Skip to content

Commit

Permalink
fix(ci): rectify build procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Mar 6, 2019
1 parent 0ea6a85 commit 23fb890
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ script:
- npm run build
- mv ./public ./build
- sshpass -p "$DEPLOY_PASSWORD" scp -o StrictHostKeyChecking=no -P $DEPLOY_PORT -r ./build $DEPLOY_USER@$DEPLOY_ADDR:/var/www/blog/html
- rm -fr build
- npm run build:gh-pages
- mv ./public ./build

addons:
ssh_known_hosts:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"version": "0.1.0",
"license": "MIT",
"scripts": {
"build": "gatsby build --prefix-paths",
"build": "gatsby build",
"build:gh-pages": "gatsby build --prefix-paths",
"develop": "gatsby develop",
"format": "prettier --write src/**/*.{js,jsx}",
"start": "npm run develop",
Expand Down

0 comments on commit 23fb890

Please sign in to comment.