Forum | Documentation | Website | Blog

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

attempt to name directories

parent f525195b
Branches
No related merge requests found
image: beagle/sphinx-build-env:latest
stages:
- deploy
- deploy-main
- deploy-branch
- deploy-tag
cache:
paths:
pages:
stage: deploy-main
script:
- sphinx-build -b html . public/latest/
- sphinx-build -M latexpdf . public/latest/
- mv public/latex/beagleboard-docs.pdf public/latest/
- echo "/ /latest/ 302" > public/latest/_redirects
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
pages:
stage: deploy-branch
script:
- sphinx-build -b html . public/$CI_COMMIT_BRANCH/
- sphinx-build -M latexpdf . public/$CI_COMMIT_BRANCH/
- mv public/latex/beagleboard-docs.pdf public/$CI_COMMIT_BRANCH/
artifacts:
paths:
- public
- public/0.0.7
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: never
- if: $CI_COMMIT_BRANCH
when: always
pages:
stage: deploy
stage: deploy-tag
script:
- sphinx-build -b html . public
- sphinx-build -M latexpdf . public
- mv public/latex/beagleboard-docs.pdf public/
- 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 -M latexpdf . public/$GIT_BRANCH/
- mv public/latex/beagleboard-docs.pdf public/$GIT_BRANCH/
artifacts:
paths:
- public
only:
- main
- 0.0.7
rules:
- if: $CI_COMMIT_TAG
when: always
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