Skip to content

Commit bbfdd56

Browse files
authored
minor fix ci
1 parent a982d05 commit bbfdd56

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

.github/workflows/release.yaml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,29 @@ jobs:
3535
with:
3636
files: ./dist/*
3737

38-
publish:
39-
if: startsWith(github.ref, 'refs/tags/v')
40-
name: Publish package to PyPI
41-
runs-on: ubuntu-latest
42-
environment: release
43-
# Trusted publishing doesn't support reusable workflows yet
44-
# permissions:
45-
# id-token: write
46-
steps:
47-
- name: Download sdist artifact
48-
uses: actions/download-artifact@v6
49-
with:
50-
name: sdist
51-
path: ./dist
52-
53-
- name: Download wheels artifact
54-
uses: actions/download-artifact@v6
55-
with:
56-
name: wheels
57-
path: ./dist
38+
publish:
39+
if: startsWith(github.ref, 'refs/tags/v')
40+
name: Publish package to PyPI
41+
runs-on: ubuntu-latest
42+
environment: release
43+
steps:
44+
- name: Download sdist artifact
45+
uses: actions/download-artifact@v6
46+
with:
47+
name: sdist
48+
path: ./dist
49+
50+
- name: Download wheels artifact
51+
uses: actions/download-artifact@v6
52+
with:
53+
name: wheels
54+
path: ./dist
55+
56+
- name: Upload distributions to PyPI
57+
uses: pypa/gh-action-pypi-publish@release/v1
58+
with:
59+
user: __token__
60+
password: ${{ secrets.PYPI_TOKEN }}
61+
skip-existing: true
62+
attestations: false
5863

59-
- name: Upload distributions to PyPI
60-
uses: pypa/gh-action-pypi-publish@release/v1
61-
with:
62-
password: ${{ secrets.PYPI_TOKEN }}
63-
skip-existing: true
64-
# Why did PyPI enable this experimental feature by default?
65-
attestations: false

0 commit comments

Comments
 (0)