Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit edc272e4 authored by Jason Kridner's avatar Jason Kridner
Browse files

CI add stage: deploy

parent 7667b304
Branches
Tags
No related merge requests found
image: beagle/sphinx-build-env:latest
on_latest:
stage: deploy
script:
- rm -rf public
- sphinx-build -b html . public
......@@ -14,6 +15,7 @@ on_latest:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
on_branch:
stage: deploy
script:
- sphinx-build -b html . public/$CI_COMMIT_BRANCH/
- sphinx-build -M latexpdf . public/$CI_COMMIT_BRANCH/
......@@ -27,6 +29,7 @@ on_branch:
- if: ($CI_COMMIT_BRANCH && ($CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH))
on_tag:
stage: deploy
script:
- export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | sed 's/.*origin\///')
- sphinx-build -b html . public/$GIT_BRANCH/
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment