Skip to content

Instantly share code, notes, and snippets.

@lionants02
Created November 8, 2019 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lionants02/58719fb59185717f9cadf41d65adc18c to your computer and use it in GitHub Desktop.
Save lionants02/58719fb59185717f9cadf41d65adc18c to your computer and use it in GitHub Desktop.
travis build apiblueprint to html
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