From 73f21ac6cdbbd9f51f60c8a721d29f956cd63513 Mon Sep 17 00:00:00 2001 From: Jason Secula Date: Fri, 13 Feb 2026 14:29:22 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e76c3f..d53c732 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,18 @@ -build-deploy: # This job runs in the build stage, which runs first. - image: python:latest - rules: - - if: $CI_COMMIT_TAG - variables: - TWINE_USERNAME: gitlab-ci-token - TWINE_PASSWORD: $CI_JOB_TOKEN +image: python:latest + +build: # This job runs in the build stage, which runs first. script: - pip install build twine - mkdir build/src/AirwatchAPI/ - mv AirwatchAPI.py build/src/AirwatchAPI/ - cd build/ - python -m build +deploy: + variables: + TWINE_USERNAME: gitlab-ci-token + TWINE_PASSWORD: $CI_JOB_TOKEN + script: - python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/* + rules: + - if: $CI_COMMIT_TAG \ No newline at end of file