Created
December 24, 2018 12:16
-
-
Save kanishkablack/c004658113438141a5ce567df857e73f to your computer and use it in GitHub Desktop.
Gitlab Building docs
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
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