From 11a88b848dcc04fb5dc37cf95be228a24c430a8f Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 1 Sep 2023 19:00:47 +0200 Subject: [PATCH] Update .gitignore and add .gitlab-ci.yml --- .gitignore | 3 ++- .gitlab-ci.yml | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitignore b/.gitignore index 8f19b89..d913669 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ venv/ *.pyc __pycache__/ -*.pdf \ No newline at end of file +*.pdf +dist/ \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9b63d58 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file