diff --git a/.github/workflows/publish_to_pypi.py b/.github/workflows/publish_to_pypi.py deleted file mode 100644 index 628ec69..0000000 --- a/.github/workflows/publish_to_pypi.py +++ /dev/null @@ -1,34 +0,0 @@ -name: Publish PyPI - -on: workflow_dispatch - -jobs: - build-n-publish: - name: Build and publish distributions to PyPI - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@master - - name: Set up Python 3.9 - uses: actions/setup-python@v1 - with: - python-version: 3.9 - - name: Install pypa/build - run: >- - python -m - pip install - build - --user - - name: Build a binary wheel and a source tarball - run: >- - python -m - build - --sdist - --wheel - --outdir dist/ - . - - name: Publish to PyPI - if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master - with: - username: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml new file mode 100644 index 0000000..014cb9b --- /dev/null +++ b/.github/workflows/publish_to_pypi.yml @@ -0,0 +1,36 @@ +name: Publish PyPI + +on: workflow_dispatch + +jobs: + build-and-publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + . + - name: Publish to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + username: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}