File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Wheel and Release
2+ on :
3+ push :
4+ tags :
5+ - v*
6+
7+ jobs :
8+ pypi-publish :
9+ name : upload release to PyPI
10+ runs-on : ubuntu-latest
11+ # Specifying a GitHub environment is optional, but strongly encouraged
12+ environment : release
13+ permissions :
14+ # IMPORTANT: this permission is mandatory for trusted publishing
15+ id-token : write
16+ steps :
17+ - uses : actions/checkout@v3
18+ with :
19+ fetch-depth : 0
20+
21+ - uses : actions/setup-python@v4
22+ name : Install Python
23+ with :
24+ python-version : " 3.11"
25+
26+ - name : Build wheels
27+ run : |
28+ git clean -fxd
29+ pip install -U build twine wheel
30+ python -m build --sdist --wheel
31+
32+ - name : Publish package distributions to PyPI
33+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments