From fe0e1d8099fe569c48c99516b785f5c4b26432c9 Mon Sep 17 00:00:00 2001 From: JostTim <44769559+JostTim@users.noreply.github.com> Date: Mon, 8 Jan 2024 16:15:19 +0100 Subject: [PATCH] updating to have no dependancy between jobs --- .gitlab-ci.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39907a3..c3e6d5b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,34 +1,34 @@ image: python:3.11 -stages: - - documentation - - publish - - test +# stages: +# - documentation +# - publish +# - test -workflow: - rules: - - if: $CI_COMMIT_BRANCH == "main" +# workflow: +# rules: +# - if: $CI_COMMIT_BRANCH == "main" StaticDocPages: - stage: documentation + # stage: documentation script: - python -m pip install --upgrade pip - 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: paths: - - $CI_PROJECT_DIR/public + - ${CI_PROJECT_DIR}/public rules: - - if: $CI_COMMIT_BRANCH == "main" + - if: ${CI_COMMIT_BRANCH} == "main" publish: - stage : publish + # stage : publish variables: - TWINE_PASSWORD: $PIPY_TOKEN + TWINE_PASSWORD: ${PIPY_TOKEN} TWINE_USERNAME: __token__ script: - pip install build twine - python -m build - python -m twine upload --repository pipy dist/* rules: - - if: $CI_COMMIT_BRANCH == "main" \ No newline at end of file + - if: ${CI_COMMIT_BRANCH} == "main" \ No newline at end of file -- GitLab