Created
November 8, 2019 04:57
-
-
Save lionants02/58719fb59185717f9cadf41d65adc18c to your computer and use it in GitHub Desktop.
travis build apiblueprint to html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: node_js | |
node_js: | |
- 7 | |
branches: | |
only: | |
- master | |
before_script: | |
- du -sh /tmp/* | |
- git clone -b gh-pages https://github.com/ffc-nectec/api-doc.git /tmp/api-doc | |
- ls -al /tmp/api-doc/* | |
- npm install -g aglio | |
script: | |
- ls -al * | |
- aglio -i blueprint.apib --theme-variables flatly -o /tmp/index.html | |
- cd /tmp/api-doc | |
- git checkout gh-pages | |
- mv ../index.html . | |
- git add index.html | |
- git commit -m "Build html" | |
- git remote add origin-gh-pages https://${GH_TOKEN}@github.com/ffc-nectec/api-doc.git > /dev/null 2>&1 | |
- git push --set-upstream origin-gh-pages gh-pages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment