diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 3a00184..f4c6ad4 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -49,26 +49,17 @@ jobs: with: name: python-package-distributions path: dist/ - - name: Set environment based on branch - id: identify - run: | - BRANCH=$(git log -1 --format='%D' ${{ github.ref }} | grep -Eo '[^\/]+$') - echo $BRANCH - echo "branch_name=${BRANCH}" >> $GITHUB_OUTPUT - outputs: - branch_name: ${{ steps.identify.outputs.branch_name }} - - publish-to-pypi: - name: publish python distribution to PyPi based on environment + publish-to-testpypi: + name: publish python distribution to TestPyPi needs: - build runs-on: ubuntu-latest environment: - name: ${{ needs.build.outputs.branch_name }} - url: ${{ vars.PYPI_URL }} - + name: testpypi + url: https://test.pypi.org/p/dataforge-core + permissions: id-token: write # IMPORTANT: mandatory for trusted publishing @@ -78,9 +69,9 @@ jobs: with: name: python-package-distributions path: dist/ - - name: publish dist to PyPi + - name: publish dist to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 - #with: - # repository-url: https://test.pypi.org/legacy/ + with: + repository-url: https://test.pypi.org/legacy/