File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and upload to test PyPI
2+
3+ on :
4+ workflow_dispatch :
5+ release :
6+ types :
7+ - published
8+
9+ jobs :
10+ build_wheels :
11+ name : Build wheels
12+ runs-on : ubuntu-20.04
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - name : Build wheels
17+ run : |
18+ pip wheel -w wheelhouse .
19+
20+ - uses : actions/upload-artifact@v3
21+ with :
22+ path : ./wheelhouse/*.whl
23+
24+ build_sdist :
25+ name : Build source distribution
26+ runs-on : ubuntu-latest
27+ steps :
28+ - uses : actions/checkout@v3
29+
30+ - name : Build sdist
31+ run : pipx run build --sdist
32+
33+ - uses : actions/upload-artifact@v3
34+ with :
35+ path : dist/*.tar.gz
36+
37+ upload_pypi :
38+ needs : [build_wheels, build_sdist]
39+ runs-on : ubuntu-latest
40+ environment : pypi
41+ permissions :
42+ id-token : write
43+ steps :
44+ - uses : actions/download-artifact@v3
45+ with :
46+ name : artifact
47+ path : dist
48+
49+ - uses : pypa/gh-action-pypi-publish@release/v1
50+ with :
51+ repository-url : https://test.pypi.org/legacy/
52+ user : __token__
53+ password : ${{ secrets.test_pypi_password }}
54+ skip-existing : true
55+ verbose : true
You can’t perform that action at this time.
0 commit comments