Separated Gitlab CI into more manageable steps #2
@ -1,13 +1,21 @@
|
||||
image: python:latest
|
||||
|
||||
deploy:
|
||||
build_pypi_packages:
|
||||
stage: build
|
||||
only:
|
||||
- master
|
||||
before_script:
|
||||
- pip install build
|
||||
script:
|
||||
- python -m build
|
||||
|
||||
deploy_to_pypi:
|
||||
stage: deploy
|
||||
only:
|
||||
- master
|
||||
before_script:
|
||||
- pip install build twine
|
||||
- pip install twine
|
||||
script:
|
||||
- python -m build
|
||||
- TWINE_PASSWORD=$PYPI_PASSWORD TWINE_USERNAME=$PYPI_USERNAME python3 -m twine upload dist/*
|
||||
|
||||
lint:
|
||||
|
Reference in New Issue
Block a user