From 0390f3a1f61d6ec587662c9a079dadca2801f023 Mon Sep 17 00:00:00 2001 From: marzzzello <15198431+marzzzello@users.noreply.github.com> Date: Sun, 29 Oct 2023 19:19:01 +0100 Subject: [PATCH] update github actions --- .github/workflows/publish-pypi.yml | 34 ++++++++++++++++-------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 3de028b..4cd43e8 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -1,23 +1,25 @@ name: Build and publish Python distributions to PyPI -on: push +on: + - push + - workflow_dispatch jobs: build-n-publish: name: Build and publish Python distributions to PyPI - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Build wheel - run: | - python3 -m pip install wheel - python3 setup.py sdist bdist_wheel - - name: Publish distribution to PyPI - if: startsWith(github.event.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.pypi_token }} + - uses: actions/checkout@master + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: 3.11 + - name: Build wheel + run: | + python3 -m pip install wheel + python3 setup.py sdist bdist_wheel + - name: Publish distribution to PyPI + if: startsWith(github.event.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.pypi_token }}