diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 2c7c10a28..52f6f4c88 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -20,9 +20,5 @@ jobs: with: fetch-depth: 0 - name: Release the port - env: - PYTHON_PYPI_USER: ${{ secrets.PYTHON_PYPI_USER }} - PYTHON_PYPI_PASSWORD: ${{ secrets.PYTHON_PYPI_PASSWORD }} - run: | - cd source/ports/py_port - bash ./upload.sh + working-directory: source/ports/py_port + run: ./upload.sh diff --git a/source/ports/py_port/VERSION b/source/ports/py_port/VERSION index 09a3acfa1..5d4294b91 100644 --- a/source/ports/py_port/VERSION +++ b/source/ports/py_port/VERSION @@ -1 +1 @@ -0.6.0 \ No newline at end of file +0.5.1 \ No newline at end of file diff --git a/source/ports/py_port/upload.sh b/source/ports/py_port/upload.sh index 0ca8eb397..d24895dc4 100644 --- a/source/ports/py_port/upload.sh +++ b/source/ports/py_port/upload.sh @@ -29,12 +29,9 @@ if [[ "$PYPI_VERSION" == "$PORT_VERSION" ]]; then exit 0 fi -export TWINE_USERNAME=${PYTHON_PYPI_USER:-} -export TWINE_PASSWORD=${PYTHON_PYPI_PASSWORD:-} - # Install dependencies and upload MetaCall package -python3 -m pip install --user --upgrade twine setuptools wheel -python3 setup.py sdist bdist_wheel +python3 -m pip install --user --upgrade twine setuptools wheel build +python3 -m build python3 -m twine check dist/* python3 -m twine upload dist/*