Files
AirwatchAPI/.gitlab-ci.yml
Jason SECULA f5abc6f0f4
All checks were successful
Build python package / Build (push) Successful in 14s
removed file creation in gitlab-ci
2026-02-19 10:41:19 +01:00

16 lines
476 B
YAML

image: python:latest
variables:
TWINE_USERNAME: gitlab-ci-token
TWINE_PASSWORD: $CI_JOB_TOKEN
build: # This job runs in the build stage, which runs first.
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/*
rules:
- if: $CI_COMMIT_TAG