Skip to content
Snippets Groups Projects
Commit 9f618971 authored by Leon Michel Gorißen's avatar Leon Michel Gorißen
Browse files

docs: update pipeline

parent 71611b1c
No related branches found
No related tags found
No related merge requests found
image: sphinxdoc/sphinx:latest image: sphinxdoc/sphinx:latest
variables: #variables:
GITLAB_ACCESS_TOKEN: glpat-hrq9xd8ghm7URq93rmez # GITLAB_ACCESS_TOKEN: glpat-hrq9xd8ghm7URq93rmez
stages: stages:
- unspam # - unspam
- test # - test
- deploy - deploy
test: #test:
stage: test # stage: test
script: # script:
- pip install pydata-sphinx-theme # - pip install pydata-sphinx-theme
- python -m sphinx -b html docs/ public # - python -m sphinx -b html docs/ public
rules: # rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH # - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages: pages:
stage: deploy stage: deploy
...@@ -27,15 +27,15 @@ pages: ...@@ -27,15 +27,15 @@ pages:
rules: rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
on_push: #on_push:
stage: unspam # stage: unspam
script: # script:
- pip install python-gitlab # - pip install python-gitlab
- python3 unspam.py # - python3 unspam.py
artifacts: # artifacts:
when: always # when: always
paths: # paths:
- backup # - backup
expire_in: 4 weeks # expire_in: 4 weeks
rules: # rules:
- if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_REF_PROTECTED == 'true' # - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_REF_PROTECTED == 'true'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment