Update .gitignore and add .gitlab-ci.yml

This commit is contained in:
Kumi 2023-09-01 19:00:47 +02:00
parent f2c67360c7
commit 11a88b848d
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 22 additions and 1 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ venv/
*.pyc
__pycache__/
*.pdf
dist/

20
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,20 @@
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