File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -55,29 +55,29 @@ jobs:
55
55
name : tetgen-sdist
56
56
path : dist/*.tar.gz
57
57
58
- upload_pypi :
58
+
59
+ release :
60
+ name : Release
61
+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
59
62
needs : [build_wheels, build_sdist]
60
63
runs-on : ubuntu-latest
61
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
64
+ environment :
65
+ name : pypi
66
+ url : https://pypi.org/p/tetgen
67
+ permissions :
68
+ id-token : write # this permission is mandatory for trusted publishing
62
69
steps :
63
70
- uses : actions/download-artifact@v4
64
- with :
65
- path : artifacts/
66
-
67
- - name : Move wheel files to dist/
71
+ - name : Flatten directory structure
68
72
run : |
69
- mkdir -p dist
70
- find artifacts -name '*.whl' -exec mv {} dist/ \;
71
-
72
- # upload to PyPI
73
- - uses : pypa/gh-action-pypi-publish@v1.8.11
74
- with :
75
- user : __token__
76
- password : ${{ secrets.PYPI_TOKEN }}
77
-
78
- - name : Release
73
+ mkdir -p dist/
74
+ find . -name '*.whl' -exec mv {} dist/ \;
75
+ find . -name '*.tar.gz' -exec mv {} dist/ \;
76
+ - name : Publish package distributions to PyPI
77
+ uses : pypa/gh-action-pypi-publish@release/v1
78
+ - name : Create GitHub Release
79
79
uses : softprops/action-gh-release@v1
80
80
with :
81
81
generate_release_notes : true
82
82
files : |
83
- ./dist /*.whl
83
+ ./** /*.whl
You can’t perform that action at this time.
0 commit comments