forked from darwinia-network/darwinia-docs-deprecated
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
24 lines (24 loc) · 930 Bytes
/
.travis.yml
File metadata and controls
24 lines (24 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# .travis.yml
language: node_js
node_js:
- '8'
branches:
only:
- master
cache:
yarn: true
script:
- 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
# install Docusaurus and generate file of English strings
# - cd website && yarn install && yarn run write-translations && cd ..
# crowdin install
# - sudo apt-get install default-jre
# - wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
# - sudo dpkg -i crowdin.deb
# translations upload/download
# - crowdin --config crowdin.yaml upload sources --auto-update -b master
# - crowdin --config crowdin.yaml download -b master
# publish pages to github
- cd website && yarn install && cp custom_generate.js ./node_modules/docusaurus/lib/server/generate.js && GIT_USER="${GH_NAME}" yarn run publish-gh-pages