Merge branch 'main' into pypi

This commit is contained in:
Steffen Illium
2023-11-22 17:52:19 +01:00

View File

@@ -10,12 +10,14 @@ build-job: # This job runs in the build stage, which runs first.
variables: variables:
TWINE_USERNAME: $USER_NAME TWINE_USERNAME: $USER_NAME
TWINE_PASSWORD: $API_KEY TWINE_PASSWORD: $API_KEY
TWINE_REPOSITORY: marl-factory-grid
image: python:slim image: python:slim
script: script:
- echo "Compiling the code..." - echo "Compiling the code..."
- pip install twine --upgrade - pip install -U twine
- python setup.py sdist - python setup.py sdist bdist_wheel
- echo "Compile complete." - twine check dist/*
- twine upload dist/* --username $USER_NAME --password $API_KEY --repository marl-factory-grid # try upload in test platform before the oficial
- twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
- echo "Upload complete." - echo "Upload complete."