forked from dayjs/dayjs-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis_bk.yml
25 lines (24 loc) · 821 Bytes
/
travis_bk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# .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
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
sudo apt-get install default-jre;
wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb;
sudo dpkg -i crowdin.deb;
cd website && yarn install && yarn run write-translations;
yarn run crowdin-upload;
yarn run crowdin-download;
GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
fi
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com