Skip to content

Commit 39a9e9a

Browse files
committed
Fix .github/workflows/python-publish.yml
1 parent 4b14572 commit 39a9e9a

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

‎.github/workflows/python-publish.yml‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222
contents: read
2323

2424
jobs:
25-
deploy:
25+
build:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v7
@@ -38,7 +38,22 @@ jobs:
3838
pip install build
3939
- name: Build package
4040
run: python -m build
41+
- name: Store distributions
42+
uses: actions/upload-artifact@v7.0.1
43+
with:
44+
name: python-package-distributions
45+
path: dist/
46+
47+
publish:
48+
needs: build
49+
runs-on: ubuntu-latest
50+
permissions:
51+
id-token: write
52+
steps:
53+
- name: Download distributions
54+
uses: actions/download-artifact@v8.0.1
55+
with:
56+
name: python-package-distributions
57+
path: dist/
4158
- name: Publish package
4259
uses: pypa/gh-action-pypi-publish@release/v1
43-
with:
44-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)