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

Merge pull request #2899 from LLK/fix-npm-publish

Do gh-pages deploy and cleanup last
parents 970e7e72 7637a9cd
No related branches found
No related tags found
No related merge requests found
...@@ -29,15 +29,6 @@ before_deploy: ...@@ -29,15 +29,6 @@ before_deploy:
export BEFORE_DEPLOY_RAN=true export BEFORE_DEPLOY_RAN=true
fi fi
deploy: 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 - provider: npm
on: on:
branch: branch:
...@@ -59,5 +50,14 @@ deploy: ...@@ -59,5 +50,14 @@ deploy:
acl: public_read acl: public_read
skip_cleanup: true skip_cleanup: true
local_dir: build 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: after_deploy:
- 'curl -X POST -H "Fastly-Key: $FASTLY_TOKEN" -H "Accept: application/json" https://api.fastly.com/service/$FASTLY_SERVICE_ID/purge_all' - '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