aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authoradamjanovsky2021-04-30 10:08:28 +0200
committerGitHub2021-04-30 10:08:28 +0200
commite3c002a63725e9e79ce81a09a7c7055c61ba5010 (patch)
tree6c4abbafcd60446c842a3cf5b2e96fddfc0de571 /.github/workflows
parent163054c591390aa25a5b093acbf5e7f44c74657a (diff)
parent0605835a24e49840a7b475116ecd6f0390212695 (diff)
downloadsec-certs-e3c002a63725e9e79ce81a09a7c7055c61ba5010.tar.gz
sec-certs-e3c002a63725e9e79ce81a09a7c7055c61ba5010.tar.zst
sec-certs-e3c002a63725e9e79ce81a09a7c7055c61ba5010.zip
Merge pull request #70 from crocs-muni/leo/fixPyPI
Fixing PyPI package building
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/python-publish.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
index 2fab292d..782ec7aa 100644
--- a/.github/workflows/python-publish.yml
+++ b/.github/workflows/python-publish.yml
@@ -24,10 +24,20 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- - name: Build and publish
+
+ - name: Build and publish to PyPI
+ if: startsWith(github.ref, 'refs/tags')
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} #Same as Docker, need to add an account in the secrets
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
+
+ - name: Build and publish to PyPI
+ env:
+ TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} #Same as Docker, need to add an account in the secrets
+ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
+ run: |
+ python setup.py sdist bdist_wheel
+ twine upload --repository testpypi dist/*