Skip to content

Commit 2f8e44f

Browse files
committed
Fix pypi publish
1 parent 3a4e9ea commit 2f8e44f

1 file changed

Lines changed: 30 additions & 29 deletions

File tree

.github/workflows/publish-to-test-pypi.yml

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
platform:
2222
- [ubuntu-latest, manylinux, x86_64]
2323
- [macos-14, macosx, arm64]
24-
python-version: [ "3.11", "3.12", "3.13" ]
24+
python-version: [ "3.12" ] # cibuildwheel automatically runs on all versions of Python
2525
toolchain:
2626
- {fortran-compiler: gcc, fc-version: 13}
2727

@@ -107,8 +107,8 @@ jobs:
107107
- name: Download all the dists
108108
uses: actions/download-artifact@v4
109109
with:
110-
pattern: raffle-dist-*
111-
path: dist/
110+
pattern: raffle-*
111+
path: dist
112112
merge-multiple: true
113113
- name: Publish distribution 📦 to PyPI
114114
uses: pypa/gh-action-pypi-publish@release/v1
@@ -158,29 +158,30 @@ jobs:
158158
'${{ github.ref_name }}' dist/**
159159
--repo '${{ github.repository }}'
160160
161-
publish-to-testpypi:
162-
name: Publish Python 🐍 distribution 📦 to TestPyPI
163-
needs:
164-
- build_wheel
165-
- build_sdist
166-
runs-on: ubuntu-latest
167-
168-
environment:
169-
name: testpypi
170-
url: https://test.pypi.org/p/raffle
171-
172-
permissions:
173-
id-token: write # IMPORTANT: mandatory for trusted publishing
174-
175-
steps:
176-
- name: Download all the dists
177-
uses: actions/download-artifact@v4
178-
with:
179-
pattern: raffle-*
180-
path: dist
181-
merge-multiple: true
182-
- name: Publish distribution 📦 to TestPyPI
183-
uses: pypa/gh-action-pypi-publish@release/v1
184-
with:
185-
verbose: true
186-
repository-url: https://test.pypi.org/legacy/
161+
# publish-to-testpypi:
162+
# name: Publish Python 🐍 distribution 📦 to TestPyPI
163+
# if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
164+
# needs:
165+
# - build_wheel
166+
# - build_sdist
167+
# runs-on: ubuntu-latest
168+
169+
# environment:
170+
# name: testpypi
171+
# url: https://test.pypi.org/p/raffle
172+
173+
# permissions:
174+
# id-token: write # IMPORTANT: mandatory for trusted publishing
175+
176+
# steps:
177+
# - name: Download all the dists
178+
# uses: actions/download-artifact@v4
179+
# with:
180+
# pattern: raffle-*
181+
# path: dist
182+
# merge-multiple: true
183+
# - name: Publish distribution 📦 to TestPyPI
184+
# uses: pypa/gh-action-pypi-publish@release/v1
185+
# with:
186+
# verbose: true
187+
# repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)