forked from CODATA-RDA-DataScienceSchools/Materials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
19 lines (19 loc) · 795 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
env:
global:
- GIT_NAME: "'Markdown autodeploy'"
- GIT_EMAIL: [email protected]
- GH_REF: [email protected]:CODATA-RDA-DataScienceSchools/Materials.git
language: python
before_script:
- pip install mkdocs
- pip install MarkdownHighlight
script:
- openssl aes-256-cbc -K $encrypted_f2a680a2c61c_key -iv $encrypted_f2a680a2c61c_iv -in deploy-key.enc -out deploy-key -d
- chmod 600 deploy-key
- eval `ssh-agent -s`
- ssh-add deploy-key
- git config user.name "Automatic Publish"
- git config user.email "[email protected]"
- git remote add gh-token "${GH_REF}";
- git fetch gh-token && git fetch gh-token gh-pages:gh-pages;
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then echo "Pushing to github"; PYTHONPATH=src/ mkdocs gh-deploy -v --clean --remote-name gh-token; git push gh-token gh-pages; fi;