Skip to content

Commit

Permalink
GH Release with multiple Py versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pm3310 committed Dec 29, 2023
1 parent f28c6ea commit 3d620c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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__
Expand Down

0 comments on commit 3d620c0

Please sign in to comment.