From 3d620c06a67ea1e55093f71c3a767aa1cfcb2fc4 Mon Sep 17 00:00:00 2001 From: pm3310 Date: Fri, 29 Dec 2023 12:50:31 +0000 Subject: [PATCH] GH Release with multiple Py versions --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01cb399..0b6db92 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,13 +8,16 @@ jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11'] # specify python versions here steps: - uses: actions/checkout@v2 - - name: Set up Python + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | @@ -26,6 +29,7 @@ jobs: python setup.py sdist bdist_wheel - name: Publish distribution 📦 to PyPI + if: matrix.python-version == '3.11' # only publish once uses: pypa/gh-action-pypi-publish@v1 with: user: __token__