File tree 1 file changed +23
-11
lines changed
1 file changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,9 @@ name: Publish Python Package
3
3
on :
4
4
release :
5
5
types : [published]
6
- push :
7
- branches :
8
- - update-publish-ci
9
6
10
7
jobs :
11
- publish :
8
+ build_wheel_and_sdist :
12
9
runs-on : ubuntu-latest
13
10
steps :
14
11
- uses : actions/checkout@v4
@@ -25,10 +22,25 @@ jobs:
25
22
- name : Build wheel and sdist
26
23
run : python -m build
27
24
shell : bash
28
- - name : Build and publish
29
- run : ls -la .
30
- # - name: Build and publish
31
- # env:
32
- # TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
33
- # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
34
- # run: twine upload dist/*
25
+ - uses : actions/upload-artifact@v4
26
+ with :
27
+ name : pandera-artifact
28
+ path : ./dist
29
+
30
+ pypi-publish :
31
+ name : Upload release to PyPI
32
+ needs : [build_wheel_and_sdist]
33
+ runs-on : ubuntu-latest
34
+ permissions :
35
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
36
+ environment : release
37
+ steps :
38
+ - uses : actions/download-artifact@v4
39
+ with :
40
+ name : pandera-artifact
41
+ path : dist
42
+ - run : ls dist
43
+ - name : Publish package distributions to PyPI
44
+ uses : pypa/gh-action-pypi-publish@release/v1
45
+ with :
46
+ attestations : false
You can’t perform that action at this time.
0 commit comments