From 8d7ce7e06bca5b88197d2b35eed0ab6ea62a837b Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Mon, 19 Jun 2023 10:44:08 +0200 Subject: [PATCH] CI/CD integration and auto-build for pypi --- .gitlab-ci.yml | 18 ++++++++++++++++++ MANIFEST.in | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3388383 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +image: python:3.11-alpine + +stages: + - deploy + +before_script: + - pip install twine + - python setup.py sdist + +deploy_production: + stage: deploy + variables: + TWINE_USERNAME: $USER_NAME + TWINE_PASSWORD: $API_KEY + script: + - twine upload dist/* + only: + - tags \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in index 7906f53..f85cebf 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -global-include *.txt *.png *.jpg \ No newline at end of file +global-include *.txt *.png *.jpg *.yaml *.yml \ No newline at end of file