Forum | Documentation | Website | Blog

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

Move content under latest

parent 17e39b44
4 merge requests!8Fixes to support/getting-started,!6support clean-up,!5Speed up build and start working on support,!4small fixes
image: python:3.9-alpine image: python:3.9-alpine
stages: stages:
- deploy - deploy-main
- deploy-branch
before_script: before_script:
- apk update - apk update
...@@ -13,15 +14,28 @@ before_script: ...@@ -13,15 +14,28 @@ before_script:
- apk add texlive-full - apk add texlive-full
- apk add make - apk add make
pages: pages_main:
stage: deploy stage: deploy-main
script: script:
- 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/bbdocs.pdf public - mv public/latex/bbdocs.pdf public/latest
- cp redirect.html public/index.html
artifacts: artifacts:
paths: paths:
- public - public
rules: rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages_branch:
stage: deploy-branch
script:
- sphinx-build -b html . public/$CI_COMMIT_REF_NAME
- sphinx-build -M latexpdf . public/$CI_COMMIT_REF_NAME
- mv public/latex/bbdocs.pdf public/$CI_COMMIT_REF_NAME
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='latest/'" />
</head>
<body>
<p>Please follow <a href="latest/">this link</a>.</p>
</body>
</html>
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