diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d53c732..14d8ecf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,11 @@ image: python:latest +stages: + - build + - deploy + build: # This job runs in the build stage, which runs first. + stage: build script: - pip install build twine - mkdir build/src/AirwatchAPI/ @@ -8,6 +13,7 @@ build: # This job runs in the build stage, which runs first. - cd build/ - python -m build deploy: + stage: deploy variables: TWINE_USERNAME: gitlab-ci-token TWINE_PASSWORD: $CI_JOB_TOKEN