1
1
mirror of https://github.com/primer/css.git synced 2024-11-28 04:43:05 +03:00

build docs on Travis :fingers_crossed:

This commit is contained in:
Shawn Allen 2018-11-30 16:29:31 -08:00
parent cfa6b5648d
commit f66aed2d5a
2 changed files with 10 additions and 0 deletions

View File

@ -10,6 +10,7 @@ env:
- secure: "KcGydAqL7ryDh2rTJJB4wU8NE5BRtnrRXDEcPBScSscO3zFsHXHBDvvO04B/9hFVatXzGYXmkn+FZ0P9QikhvebzdwwyqUG2SKFiHhMvbX0m0WtAhn5NqDuKU1r5qy5YQ18r/tiLfC9GSAlEpfLAH58pwpcn8srV3Mn/yKvlrfs="
script:
- script/build-docs
- npm test
- script/check-versions

9
script/build-docs Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
cd docs
npm install
npm run prepare
if [ -z "$NOW_TOKEN" ]; then
echo "NOW_TOKEN is not set; skipping docs deployment"
else
now --token=$NOW_TOKEN
fi