File tree Expand file tree Collapse file tree 1 file changed +27
-11
lines changed Expand file tree Collapse file tree 1 file changed +27
-11
lines changed Original file line number Diff line number Diff line change @@ -3,19 +3,35 @@ name: Release
33on :
44 release :
55 types : [published]
6+ workflow_dispatch :
7+
8+ permissions :
9+ id-token : write
610
711jobs :
12+ release-build :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-python@v5
17+ with :
18+ python-version : " 3.x"
19+ - run : python -m pip install --upgrade pip build wheel
20+ - run : python -m build --sdist --wheel
21+ - uses : actions/upload-artifact@v4
22+ with :
23+ name : release-dists
24+ path : dist/
825
9- PyPi :
26+ pypi-publish :
1027 runs-on : ubuntu-latest
28+ needs :
29+ - release-build
30+ permissions :
31+ id-token : write
1132 steps :
12- - uses : actions/checkout@v4
13- - uses : actions/setup-python@v5
14- with :
15- python-version : " 3.x"
16- - run : python -m pip install --upgrade pip build wheel twine
17- - run : python -m build --sdist --wheel
18- - run : python -m twine upload dist/*
19- env :
20- TWINE_USERNAME : __token__
21- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
33+ - uses : actions/download-artifact@v4
34+ with :
35+ name : release-dists
36+ path : dist/
37+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments