Update .gitlab-ci.yml file

This commit is contained in:
Jason Secula
2026-02-13 14:09:10 +01:00
parent 04a8fe6cdc
commit 5f0556c5c9

11
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,11 @@
build-deploy: # This job runs in the build stage, which runs first.
image: python:latest
variables:
TWINE_USERNAME: gitlab-ci-token
TWINE_PASSWORD: $CI_JOB_TOKEN
script:
- pip install build twine
- mv AirwatchAPI.py build/src/AirwatchAPI/
- cd build/
- python -m build
- python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*