Update .gitignore and add .gitlab-ci.yml
This commit is contained in:
parent
f2c67360c7
commit
11a88b848d
2 changed files with 22 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ venv/
|
|||
*.pyc
|
||||
__pycache__/
|
||||
*.pdf
|
||||
dist/
|
20
.gitlab-ci.yml
Normal file
20
.gitlab-ci.yml
Normal 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
|
Loading…
Reference in a new issue