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
No related merge requests found
image: beagle/sphinx-build-env:latest image: beagle/sphinx-build-env:latest
on_latest: on_latest:
stage: deploy
script: script:
- rm -rf public - rm -rf public
- sphinx-build -b html . public - sphinx-build -b html . public
...@@ -14,6 +15,7 @@ on_latest: ...@@ -14,6 +15,7 @@ on_latest:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
on_branch: on_branch:
stage: deploy
script: script:
- sphinx-build -b html . public/$CI_COMMIT_BRANCH/ - sphinx-build -b html . public/$CI_COMMIT_BRANCH/
- sphinx-build -M latexpdf . public/$CI_COMMIT_BRANCH/ - sphinx-build -M latexpdf . public/$CI_COMMIT_BRANCH/
...@@ -27,6 +29,7 @@ on_branch: ...@@ -27,6 +29,7 @@ on_branch:
- if: ($CI_COMMIT_BRANCH && ($CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH)) - if: ($CI_COMMIT_BRANCH && ($CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH))
on_tag: on_tag:
stage: deploy
script: script:
- export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | sed 's/.*origin\///') - export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | sed 's/.*origin\///')
- sphinx-build -b html . public/$GIT_BRANCH/ - 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