Skip to content
Snippets Groups Projects
Commit fe0e1d80 authored by JostTim's avatar JostTim
Browse files

updating to have no dependancy between jobs

parent 5b289ffe
No related branches found
No related tags found
No related merge requests found
Pipeline #120180 failed
image: python:3.11 image: python:3.11
stages: # stages:
- documentation # - documentation
- publish # - publish
- test # - test
workflow: # workflow:
rules: # rules:
- if: $CI_COMMIT_BRANCH == "main" # - if: $CI_COMMIT_BRANCH == "main"
StaticDocPages: StaticDocPages:
stage: documentation # stage: documentation
script: script:
- python -m pip install --upgrade pip - python -m pip install --upgrade pip
- pip install auto_fast_docs - pip install auto_fast_docs
- auto_fast_docs ${CI_PROJECT_NAME} --username ${CI_COMMIT_AUTHOR} --platform 'gitlab:pasteur.fr' --group haisslab/data-management --layout src - auto_fast_docs ${CI_PROJECT_NAME} --username ${GITLAB_USER_NAME} --platform 'gitlab:pasteur.fr' --group haisslab/data-management --layout src
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/public - ${CI_PROJECT_DIR}/public
rules: rules:
- if: $CI_COMMIT_BRANCH == "main" - if: ${CI_COMMIT_BRANCH} == "main"
publish: publish:
stage : publish # stage : publish
variables: variables:
TWINE_PASSWORD: $PIPY_TOKEN TWINE_PASSWORD: ${PIPY_TOKEN}
TWINE_USERNAME: __token__ TWINE_USERNAME: __token__
script: script:
- pip install build twine - pip install build twine
- python -m build - python -m build
- python -m twine upload --repository pipy dist/* - python -m twine upload --repository pipy dist/*
rules: rules:
- if: $CI_COMMIT_BRANCH == "main" - if: ${CI_COMMIT_BRANCH} == "main"
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment