Skip to content

Instantly share code, notes, and snippets.

@kanishkablack
Created December 24, 2018 12:16
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 kanishkablack/c004658113438141a5ce567df857e73f to your computer and use it in GitHub Desktop.
Save kanishkablack/c004658113438141a5ce567df857e73f to your computer and use it in GitHub Desktop.
Gitlab Building docs
docs-md:
stage: deploy
allow_failure: true
script:
- git clone {repo} doc
- rm -rf doc/*
- mix deps.get
- mix docs -f md
- cd doc
- git config --global user.email "ops@ahamtech.in"
- git config --global user.name "Gitlab Runner"
- git add .
- git commit -am "$CI_COMMIT_SHA"
- git push -u origin master
only:
- docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment