Forum | Documentation | Website | Blog

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

CI .gitlab-ci.yml hacking

parent edc272e4
Branches
Tags
No related merge requests found
image: beagle/sphinx-build-env:latest image: beagle/sphinx-build-env:latest
on_latest: stages:
- deploy
pages:
stage: deploy stage: deploy
script: script:
- rm -rf public - rm -rf public
- sphinx-build -b html . public - sphinx-build -b html . public/latest/
- sphinx-build -M latexpdf . public - sphinx-build -M latexpdf . public/latest/
- mv public/latex/beagleboard-docs.pdf public - mv public/latest/latex/beagleboard-docs.pdf public/latest
- rm -rf public/latex - rm -rf public/latest/latex
- echo "/ /latest 302" > public/_redirects
artifacts: artifacts:
name: "latest"
paths: paths:
- public - public
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
on_branch: pages:
stage: deploy stage: deploy
script: script:
- sphinx-build -b html . public/$CI_COMMIT_BRANCH/ - sphinx-build -b html . public/$CI_COMMIT_BRANCH/
...@@ -28,7 +33,7 @@ on_branch: ...@@ -28,7 +33,7 @@ on_branch:
rules: rules:
- if: ($CI_COMMIT_BRANCH && ($CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH)) - if: ($CI_COMMIT_BRANCH && ($CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH))
on_tag: pages:
stage: deploy 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\///')
......
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