Skip to content

Commit 5de34a9

Browse files
committed
Do not use a reusable workflow for PyPI uploads
Due to pypi/warehouse#11096 one cannot use a reusable workflow for uploading wheels to PyPI yet.
1 parent 7949f04 commit 5de34a9

File tree

2 files changed

+15
-31
lines changed

2 files changed

+15
-31
lines changed

.github/workflows/pypi-upload-template.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/wheels-nightly.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,19 @@ jobs:
3232
pattern: wheels-*
3333

3434
pypi-publish:
35-
name: Upload wheel to PyPI
36-
uses: ./.github/workflows/pypi-upload-template.yml
35+
name: Upload wheels to PyPI
3736
needs: merge
38-
with:
39-
project_name: 'neuron-nightly'
37+
runs-on: ubuntu-latest
38+
environment:
39+
name: pypi
40+
url: https://pypi.org/p/neuron-nightly
41+
permissions:
42+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
43+
steps:
44+
- name: Download wheels from artifact
45+
uses: actions/download-artifact@v4
46+
with:
47+
name: wheels
48+
path: dist/
49+
- name: Publish package distributions to PyPI
50+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)