Skip to content

Commit 16df6a2

Browse files
committed
fix ci publish workflow
1 parent 98e3831 commit 16df6a2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535
3636
build-n-publish:
3737
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
38-
runs-on: ubuntu-latest
38+
runs-on: ${{ matrix.os }}
39+
strategy:
40+
matrix:
41+
python-version: [ "3.12" ]
42+
os: [ ubuntu-latest ]
3943
# Specifying a GitHub environment, # Specifying a GitHub environment, which is strongly recommended by PyPI: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
4044
# you have to create an environment in your repository settings and add the environment name here
4145
environment: release
@@ -45,7 +49,7 @@ jobs:
4549
needs: tests
4650
steps:
4751
- uses: actions/checkout@v4
48-
- name: Set up Python
52+
- name: Set up Python ${{ matrix.python-version }}
4953
uses: actions/setup-python@v5
5054
with:
5155
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)