Build fail
mohamednizar opened this issue · 3 comments
mohamednizar commented
I'm getting deploy error with github
> MoE-HRM-openapi-spec@0.0.1 deploy /home/travis/build/moe-lk/apidoc
> npm run build && deploy-to-gh-pages --update web_deploy
> MoE-HRM-openapi-spec@0.0.1 build /home/travis/build/moe-lk/apidoc
> node ./scripts/build.js
> MoE-HRM-openapi-spec@0.0.1 swagger /home/travis/build/moe-lk/apidoc
> swagger-repo "bundle" "-o" "web_deploy/swagger.json"
Adding code samples to spec
Running plugins
Plugins folder not found. Skip.
Created "web_deploy/swagger.json" swagger file.
> MoE-HRM-openapi-spec@0.0.1 swagger /home/travis/build/moe-lk/apidoc
> swagger-repo "bundle" "--yaml" "-o" "web_deploy/swagger.yaml"
Adding code samples to spec
Running plugins
Plugins folder not found. Skip.
Created "web_deploy/swagger.yaml" swagger file.
You need to setup GH_TOKEN environment variable
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! MoE-HRM-openapi-spec@0.0.1 deploy: `npm run build && deploy-to-gh-pages --update web_deploy`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the MoE-HRM-openapi-spec@0.0.1 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/travis/.npm/_logs/2018-11-14T12_08_24_406Z-debug.log
Script failed with status 1
with travis-ci
RomanHotsiy commented
You need to setup GH_TOKEN environment variable
Follow instructions from the generated README file.
See example here: https://github.com/thingful/openapi-spec#steps-to-finish
mohamednizar commented
I have GH_TOKEN in travis-ci, do I need to add somewhere in travis-ci ?
RomanHotsiy commented
Looks like you don't have it set up in Travis. Your error message says exactly that:
You need to setup GH_TOKEN environment variable
Please, follow the steps carefully!
- Use the token value as a value for Travis environment variable with the name
GH_TOKEN