Skip to content

Commit 20c11ad

Browse files
committed
debug
Signed-off-by: cosmicBboy <[email protected]>
1 parent aff2f40 commit 20c11ad

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- test-publish-ci
99

1010
jobs:
11-
publish:
11+
build_wheel_and_sdist:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
@@ -25,10 +25,30 @@ jobs:
2525
- name: Build wheel and sdist
2626
run: python -m build
2727
shell: bash
28-
- name: Build and publish
29-
run: ls -la .
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: pandera-artifact
31+
path: ./dist
3032
# - name: Build and publish
3133
# env:
3234
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
3335
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3436
# run: twine upload dist/*
37+
38+
pypi-publish:
39+
name: Upload release to PyPI
40+
needs: [build_wheel_and_sdist]
41+
runs-on: ubuntu-latest
42+
permissions:
43+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
44+
environment: release
45+
steps:
46+
- uses: actions/download-artifact@v4
47+
with:
48+
name: pandera-artifact
49+
path: dist
50+
- run: ls dist
51+
- name: Publish package distributions to PyPI
52+
uses: pypa/gh-action-pypi-publish@release/v1
53+
with:
54+
attestations: false

0 commit comments

Comments
 (0)