diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dd12602..d088cf6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,20 +67,24 @@ pages: paths: - public -run nox: - variables: - GIT_STRATEGY: clone - CONDA_PKGS_DIRS: micromamba/pkgs - parallel: - matrix: - - NOXSESSION: - - "tests(minimal)" - - "tests(mid)" - - "tests(latest)" +publish to test pypi: + needs: + - run tests + - run docs + rules: + - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+.*\+test$/' # vX.Y.Z.post1+test script: - - micromamba install -c conda-forge -y nox mamba - - nox -s $NOXSESSION - cache: - key: "$CI_JOB_NAME" - paths: - - micromamba + - micromamba install -c conda-forge -y hatch hatch-vcs + - hatch build + - hatch publish -u __token__ -a $PYPI_TEST_TOKEN -r test + +publish to pypi: + needs: + - run tests + - run docs + rules: + - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+[^+]*$/' # No +test + script: + - micromamba install -c conda-forge -y hatch hatch-vcs + - hatch build + - hatch publish -u __token__ -a $PYPI_TOKEN