mirror of
https://github.com/jung-geun/PSO.git
synced 2025-12-19 20:44:39 +09:00
빌드 단계 추가 및 코드 정리
This commit is contained in:
18
.gitlab/ci/pypi.gitlab-ci.yml
Normal file
18
.gitlab/ci/pypi.gitlab-ci.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
variables:
|
||||
PYTHON_VERSION: "3.9"
|
||||
TWINE_USERNAME: "__token__"
|
||||
|
||||
build-package:
|
||||
stage: build
|
||||
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"
|
||||
Reference in New Issue
Block a user