diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 0d4980a..d5e20eb 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -14,13 +14,12 @@ jobs: uses: actions/setup-python@v3 with: python-version: "3.8" - - name: Install setuptools and wheel + - name: Install pypa/build run: >- python -m pip install --user - setuptools - wheel + build - name: Build sdist and wheel run: >- python -m @@ -30,11 +29,11 @@ jobs: --outdir dist/ . - name: Publish distribution to Test PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.TEST_PYPI_TOKEN }} repository_url: https://test.pypi.org/legacy/ - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_TOKEN }}