From cc1a8d529032e77c77ad8609f108bf1ac16d6565 Mon Sep 17 00:00:00 2001 From: Matthew Defenderfer <mdefende@uab.edu> Date: Sat, 5 Oct 2024 15:45:19 -0500 Subject: [PATCH] fixing things? --- .gitlab-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00446c8..659edee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,12 +14,10 @@ variables: PIP_INDEX_URL: "https://__token__:${CI_JOB_TOKEN}@gitlab.com/api/v4/projects/$CI_PROJECT_ID/packages/pypi/simple" PIP_EXTRA_INDEX_URL: "https://pypi.org/simple" -before_script: - - pip install setuptools wheel build twine - build_package: stage: build script: + - pip install setuptools wheel build twine - python -m build artifacts: paths: @@ -32,11 +30,10 @@ test_package: - pip install pytest - pytest # Run tests -publish_package: +publish_pip: stage: publish script: - - pip install twine # Install twine to publish the package - - twine upload dist/* # Publish the package to the GitLab package registry + - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/* build_and_push_docker_image: stage: publish -- GitLab