mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
fix(docs): decploy scripts in travis needs to be single command
This commit is contained in:
parent
49e6faf925
commit
70b9a65244
@ -26,10 +26,6 @@ cache:
|
|||||||
deploy:
|
deploy:
|
||||||
# deploy doc on master to production
|
# deploy doc on master to production
|
||||||
- provider: script
|
- provider: script
|
||||||
script:
|
script: bash scripts/deploy-docs.sh
|
||||||
- git config --global user.name "${GH_NAME}"
|
|
||||||
- git config --global user.email "${GH_EMAIL}"
|
|
||||||
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
|
|
||||||
- cd website && npm install && GIT_USER="${GH_NAME}" npm run publish-gh-pages
|
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
6
scripts/deploy-docs.sh
Executable file
6
scripts/deploy-docs.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
git config --global user.name "${GH_NAME}"
|
||||||
|
git config --global user.email "${GH_EMAIL}"
|
||||||
|
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
|
||||||
|
cd website && npm install && GIT_USER="${GH_NAME}" npm run publish-gh-pages
|
Loading…
Reference in New Issue
Block a user