diff options
| -rw-r--r-- | .github/workflows/python-publish.yml | 12 | ||||
| -rwxr-xr-x | sec_certs/entrypoints/fips_certificates.py (renamed from fips_certificates.py) | 0 | ||||
| -rw-r--r--[-rwxr-xr-x] | sec_certs/entrypoints/process_certificates.py (renamed from process_certificates.py) | 0 | ||||
| -rw-r--r-- | setup.py | 4 |
4 files changed, 13 insertions, 3 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/* diff --git a/fips_certificates.py b/sec_certs/entrypoints/fips_certificates.py index eb147d48..eb147d48 100755 --- a/fips_certificates.py +++ b/sec_certs/entrypoints/fips_certificates.py diff --git a/process_certificates.py b/sec_certs/entrypoints/process_certificates.py index 5272fc67..5272fc67 100755..100644 --- a/process_certificates.py +++ b/sec_certs/entrypoints/process_certificates.py @@ -33,7 +33,7 @@ setup( }, entry_points=""" [console_scripts] - process-certs=process_certificates:main - fips-certs=fips_certificates:main + process-certs=sec_certs.entrypoints.process_certificates:main + fips-certs=sec_certs.entrypoints.fips_certificates:main """ ) |
