20 lines
368 B
YAML
20 lines
368 B
YAML
|
image: python:3.10
|
||
|
|
||
|
stages:
|
||
|
- publish
|
||
|
|
||
|
before_script:
|
||
|
- python -V
|
||
|
- python -m venv venv
|
||
|
- source venv/bin/activate
|
||
|
- pip install -U pip
|
||
|
- pip install .
|
||
|
|
||
|
publish:
|
||
|
stage: publish
|
||
|
script:
|
||
|
- pip install -U hatchling twine build
|
||
|
- python -m build .
|
||
|
- python -m twine upload --username __token__ --password ${PYPI_TOKEN} dist/*
|
||
|
only:
|
||
|
- tags
|