Skip to content
Snippets Groups Projects
Verified Commit eab22fd8 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Added job publish.

parent e5480235
No related branches found
No related tags found
1 merge request!21Publish to PYPI
...@@ -33,3 +33,11 @@ tests (arch): ...@@ -33,3 +33,11 @@ tests (arch):
tests: tests:
script: script:
- tox -p - tox -p
publish:
rules:
- if: $CI_COMMIT_TAG
variables:
TWINE_REPOSITORY: testpypi
script:
- tox -e publish
...@@ -41,6 +41,20 @@ deps = pre-commit ...@@ -41,6 +41,20 @@ deps = pre-commit
skip_install = True skip_install = True
commands = pre-commit run --all-files commands = pre-commit run --all-files
[testenv:publish]
deps =
build
twine
skip_install = True
passenv =
TWINE_REPOSITORY
TWINE_USERNAME
TWINE_PASSWORD
commands =
pyproject-build
twine upload dist/*
# Tool settings
[pytest] [pytest]
testpaths = ogstools testpaths = ogstools
xfail_strict = true xfail_strict = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment