빌드 단계를 build에서 build-pypi로 변경

This commit is contained in:
jung-geun
2024-03-08 18:44:38 +09:00
parent c7308a6e72
commit 5798aa38a8
2 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
variables:
PYTHON_VERSION: "3.9"
TWINE_USERNAME: "__token__"
build-pypi:
stage: build-pypi
image: python:${PYTHON_VERSION}
script:
- pip install --upgrade pip
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- pip install setuptools wheel twine
- python setup.py bdist_wheel sdist
- twine upload dist/*.whl dist/*.tar.gz
only:
changes:
- "setup.py"
- "pso/__init__.py"