Skip to content
Snippets Groups Projects
Commit 95b460b9 authored by Florian Fischer's avatar Florian Fischer :turtle:
Browse files

adds stages

parent e0849187
Branches
No related merge requests found
image: python:3
stages:
- build
- deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
PAGES_DIR: public
before_script:
- python -m pip install --upgrade pip
- pip install furo
- pip install sphinx
- pip install sphinx-rtd-theme
build:
stage: build
script:
- mkdir -p $PAGES_DIR
- sphinx-build -b html docs $PAGES_DIR
artifacts:
paths:
- $PAGES_DIR
- pages
pages:
stage: deploy
stage: pages
tags:
- Python3.8
needs:
- test
script:
- echo "Deploying GitLab Pages"
- apt-get update
- apt-get install libgl1 -y
- sphinx-build -b html ./docs public
artifacts:
paths:
- $PAGES_DIR
expire_in: 30 days
only:
- main
# The folder that contains the files to be exposed at the Page URL
- public
\ No newline at end of file
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