File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 8
8
- test-publish-ci
9
9
10
10
jobs :
11
- publish :
11
+ build_wheel_and_sdist :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v4
@@ -25,10 +25,30 @@ jobs:
25
25
- name : Build wheel and sdist
26
26
run : python -m build
27
27
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
30
32
# - name: Build and publish
31
33
# env:
32
34
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
33
35
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
34
36
# 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
You can’t perform that action at this time.
0 commit comments