From a15237d6e84a041b64ed864635152ae5dc997120 Mon Sep 17 00:00:00 2001 From: WhiteApfel Date: Sun, 11 Jun 2023 16:35:35 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Fix=20`pypi-publish`=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypi-publish.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index beb1bb4..a3f49d6 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -7,26 +7,23 @@ on: jobs: build-n-publish: name: Build and publish package to PyPI - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@master - - name: Set up Python 3.8 - uses: actions/setup-python@v1 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.8 - + python-version: '3.10' - name: Install pypa/build run: >- python3 -m pip install --user --upgrade setuptools wheel - - name: Build a binary wheel and a source tarball env: TAG_VERSION: ${{ github.event.release.tag_name }} run: >- python3 setup.py sdist bdist_wheel - - name: Publish package to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: - password: ${{ secrets.PYPI_API_TOKEN }} + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file