chore: update ci to always push to pypi

This commit is contained in:
Umut
2023-01-30 09:42:07 +01:00
parent 3bd062a1f3
commit 4e1912365c

View File

@@ -689,19 +689,12 @@ jobs:
fi
- name: Push package to PyPi
if: ${{ success() && !cancelled() && !fromJSON(env.IS_PRERELEASE) }}
if: ${{ success() && !cancelled() }}
run: |
poetry run twine upload \
-u __token__ -p ${{ secrets.PYPI_BOT_TOKEN }} \
-r pypi "${{ env.ARTIFACTS_PACKAGED_DIR }}"/*.whl
- name: Push package to Internal PyPi
if: ${{ success() && !cancelled() && fromJSON(env.IS_PRERELEASE) }}
run: |
poetry run twine upload \
-u "${{ secrets.INTERNAL_PYPI_BOT_USERNAME }}" -p "${{ secrets.INTERNAL_PYPI_BOT_PASSWORD }}" \
--repository-url "${{ secrets.INTERNAL_PYPI_URL }}" "${{ env.ARTIFACTS_PACKAGED_DIR }}"/*.whl
- name: Create GitHub release
if: ${{ success() && !cancelled() }}
id: create-release