From 040cb9bf3485fccd90864d153b64e5d4cacab6da Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Fri, 31 Dec 2021 04:00:03 +1100 Subject: [PATCH] Update and rename publish_to_pypi.py to publish_to_pypi.yml --- .github/workflows/publish_to_pypi.py | 34 ------------------------- .github/workflows/publish_to_pypi.yml | 36 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/publish_to_pypi.py create mode 100644 .github/workflows/publish_to_pypi.yml 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 }}