@@ -57,28 +57,28 @@ jobs:
5757 echo "DJ_WHEEL_PATH=$(ls dist/datajoint-*.whl)" >> $GITHUB_ENV
5858 echo "DJ_SDIST_PATH=$(ls dist/datajoint-*.tar.gz)" >> $GITHUB_ENV
5959 echo "NEW_VERSION=${{steps.create_gh_release.outputs.resolved_version}}" >> $GITHUB_ENV
60- - name : Publish package
61- run : |
62- export HOST_UID=$(id -u)
63- if [ "$TESTPYPI" == "true" ]; then
64- LATEST_PYPI=$(curl -s https://test.pypi.org/pypi/datajoint/json | jq -r '.info.version')
65- export TWINE_REPOSITORY="testpypi"
66- export TWINE_USERNAME=${TWINE_TEST_USERNAME}
67- export TWINE_PASSWORD=${TWINE_TEST_PASSWORD}
68- else
69- LATEST_PYPI=$(curl -s https://pypi.org/pypi/datajoint/json | jq -r '.info.version')
70- export TWINE_REPOSITORY="pypi"
71- fi
72- # Check if the new version is different from the latest on PyPI, avoid re-uploading error
73- if [ "$NEW_VERSION" != "$LATEST_PYPI" ]; then
74- docker compose run --build --quiet-pull \
75- -e TWINE_USERNAME=${TWINE_USERNAME} \
76- -e TWINE_PASSWORD=${TWINE_PASSWORD} \
77- -e TWINE_REPOSITORY=${TWINE_REPOSITORY} \
78- app sh -c "pip install twine && python -m twine upload dist/*"
79- else
80- echo "::warning::Latest version $LATEST_PYPI on $TWINE_REPOSITORY is the new version $NEW_VERSION"
81- fi
60+ # - name: Publish package
61+ # run: |
62+ # export HOST_UID=$(id -u)
63+ # if [ "$TESTPYPI" == "true" ]; then
64+ # LATEST_PYPI=$(curl -s https://test.pypi.org/pypi/datajoint/json | jq -r '.info.version')
65+ # export TWINE_REPOSITORY="testpypi"
66+ # export TWINE_USERNAME=${TWINE_TEST_USERNAME}
67+ # export TWINE_PASSWORD=${TWINE_TEST_PASSWORD}
68+ # else
69+ # LATEST_PYPI=$(curl -s https://pypi.org/pypi/datajoint/json | jq -r '.info.version')
70+ # export TWINE_REPOSITORY="pypi"
71+ # fi
72+ # # Check if the new version is different from the latest on PyPI, avoid re-uploading error
73+ # if [ "$NEW_VERSION" != "$LATEST_PYPI" ]; then
74+ # docker compose run --build --quiet-pull \
75+ # -e TWINE_USERNAME=${TWINE_USERNAME} \
76+ # -e TWINE_PASSWORD=${TWINE_PASSWORD} \
77+ # -e TWINE_REPOSITORY=${TWINE_REPOSITORY} \
78+ # app sh -c "pip install twine && python -m twine upload dist/*"
79+ # else
80+ # echo "::warning::Latest version $LATEST_PYPI on $TWINE_REPOSITORY is the new version $NEW_VERSION"
81+ # fi
8282 # Upload package as release assets
8383 - name : Upload pip wheel asset to release
8484 if : ${{ github.event.inputs.testpypi == 'false' }}
0 commit comments