Initial commit
All checks were successful
Build python package / Build (push) Successful in 24s

This commit is contained in:
2026-02-18 10:58:06 +01:00
commit 123d7d1ecf
6 changed files with 411 additions and 0 deletions

17
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,17 @@
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
- mkdir build/src/GLPIAPI/
- mv GLPIAPI.py build/src/GLPIAPI/
- 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