Skip to content

Commit

Permalink
fix: 🐛 Fix broken github pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLambrecht committed Jan 21, 2019
1 parent 735534e commit 0879034
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 38 deletions.
21 changes: 13 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ node_js:

stages:
- test
- name: deploy-github
if: tag IS present
- name: deploy-now-nightly
if: branch = master
- name: deploy-now
if: tag IS present
- deploy-github
- deploy-now-nightly
- deploy-now

jobs:
include:
Expand All @@ -21,16 +18,24 @@ jobs:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
local-dir: './dist'
keep-history: true
on:
branch: master
tags: true
- stage: deploy-now-nightly
script: npm run deploy
after_script: npm run alias:dev
deploy:
provider: script
skip-cleanup: true
script: npm run deploy
on:
all_branches: true
tags: false
after_deploy: npm run alias:dev
- stage: deploy-now
deploy:
provider: script
skip-cleanup: true
script: npm run deploy
on:
branch: master
Expand Down
41 changes: 11 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0879034

Please sign in to comment.