diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-08-17 12:22:27 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-08-17 12:22:27 -0300 |
commit | 374522358f12d339621c679d163033dab93166cd (patch) | |
tree | 6b55d8e11d4cc90f36992c04208e39a04104a60e | |
parent | e7505f2852451dc907d4680e8bb15abecb5b4941 (diff) |
Separated gitlab-ci steps further
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d7c3e9f..5919ed8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,21 @@ image: python:latest -deploy: - stage: deploy +build_pypi_packages: + stage: build only: - master before_script: - - pip install build twine + - pip install build script: - python -m build + +deploy_to_pypi: + stage: deploy + only: + - master + before_script: + - pip install twine + script: - TWINE_PASSWORD=$PYPI_PASSWORD TWINE_USERNAME=$PYPI_USERNAME python3 -m twine upload dist/* lint: |