mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-28 03:28:35 +08:00
30 lines
571 B
YAML
30 lines
571 B
YAML
language: node_js
|
|
|
|
node_js: stable
|
|
|
|
before_install:
|
|
|
|
install:
|
|
- yarn
|
|
|
|
script:
|
|
- npm run docs:build
|
|
- cd docs/.vuepress/dist
|
|
- echo 'rsshub.js.org' > CNAME
|
|
|
|
after_script:
|
|
- |
|
|
if git diff --name-only $TRAVIS_COMMIT_RANGE | grep '^docs/'
|
|
then
|
|
git init
|
|
git config user.name "Travis CI"
|
|
git config user.email "no-reply@html.love"
|
|
git add -A
|
|
git commit -m 'deploy'
|
|
git push -f "https://${GH_TOKEN}@github.com/DIYgod/RSSHub.git" master:gh-pages
|
|
fi
|
|
|
|
cache:
|
|
yarn: true
|
|
directories:
|
|
- node_modules |