diff --git a/.github/workflows/release_pip.yml b/.github/workflows/release_pip.yml index 7ca279c..2249ade 100644 --- a/.github/workflows/release_pip.yml +++ b/.github/workflows/release_pip.yml @@ -1,15 +1,11 @@ name: Release -# on: -# release: -# types: [released] on: - push: - branches: - - workflow-updates + release: + types: [released] jobs: - build: + release-pip: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -32,11 +28,10 @@ jobs: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} # for testing purposes set the PYPI_REPO_URL to https://test.pypi.org/legacy/ - #TODO: remove this test setting before merge - PYPI_REPO_URL: 'https://test.pypi.org/legacy/' + PYPI_REPO_URL: '' run: | if [ -z "${{ env.PYPI_REPO_URL }}" ]; then twine upload --verbose dist/* else - echo "skipped for test" + twine upload --verbose --repository-url "${{ env.PYPI_REPO_URL }}" dist/* fi