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