diff --git a/.github/workflows/release_pypi.yml b/.github/workflows/release_pypi.yml index 10891da4e..b9100ea74 100644 --- a/.github/workflows/release_pypi.yml +++ b/.github/workflows/release_pypi.yml @@ -11,13 +11,13 @@ jobs: steps: - name: checkout tag - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ github.event.release.tag_name }} - name: setup Python environment - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.10' architecture: 'x64' - name: install dependencies run: | @@ -27,8 +27,4 @@ jobs: run: | python setup.py sdist bdist_wheel - name: upload to PyPI - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: | - twine upload dist/* + uses: pypa/gh-action-pypi-publish@release/v1