Skip to content
Snippets Groups Projects
Unverified Commit 7637a9cd authored by Ray Schamp's avatar Ray Schamp Committed by GitHub
Browse files

Do gh-pages deploy and cleanup last

parent 9e364eea
No related branches found
No related tags found
No related merge requests found
......@@ -29,15 +29,6 @@ before_deploy:
export BEFORE_DEPLOY_RAN=true
fi
deploy:
- provider: script
on:
all_branches: true
skip_cleanup: true
script: npm run deploy -- -x -e $TRAVIS_BRANCH -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- provider: script
on:
all_branches: true
script: npm run prune -- https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- provider: npm
on:
branch:
......@@ -59,5 +50,14 @@ deploy:
acl: public_read
skip_cleanup: true
local_dir: build
- provider: script
on:
all_branches: true
skip_cleanup: true
script: npm run deploy -- -x -e $TRAVIS_BRANCH -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- provider: script
on:
all_branches: true
script: npm run prune -- https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
after_deploy:
- 'curl -X POST -H "Fastly-Key: $FASTLY_TOKEN" -H "Accept: application/json" https://api.fastly.com/service/$FASTLY_SERVICE_ID/purge_all'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment