File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Original file line number Diff line number Diff line change 84
84
- uses : actions/download-artifact@v3
85
85
with :
86
86
path : dist/
87
- - run : ls -lR
88
- - run : mv dist/*/*.{tar.gz,whl} dist
89
- - run : rmdir dist/*/
90
- - run : ls -lR
87
+ - name : Check artifacts
88
+ run : ls -lR
89
+ - name : Consolidate and re-check
90
+ run : |
91
+ mv dist/*/*.{tar.gz,whl} dist
92
+ rmdir dist/*/
93
+ ls -lR
94
+ - run : pipx run twine dist/*
95
+
96
+ publish :
97
+ runs-on : ubuntu-latest
98
+ environment : " Package deployment"
99
+ needs : [pre-publish]
100
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
101
+ steps :
102
+ - uses : actions/download-artifact@v3
103
+ with :
104
+ path : dist/
105
+ - name : Consolidate artifacts
106
+ run : |
107
+ mv dist/*/*.{tar.gz,whl} dist
108
+ rmdir dist/*/
109
+ - uses : pypa/gh-action-pypi-publish@release/v1
110
+ with :
111
+ user : __token__
112
+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments