File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to PyPI via Trusted Publisher
2+
3+ on :
4+ push :
5+ tags :
6+ - " *"
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+
12+ permissions :
13+ id-token : write
14+ contents : read
15+
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v3
19+
20+ - name : Set up Python
21+ uses : actions/setup-python@v4
22+ with :
23+ python-version : " 3.9"
24+
25+ - name : Install dependencies
26+ run : |
27+ pip install --upgrade setuptools wheel build
28+
29+ - name : Build the package
30+ run : |
31+ python setup.py sdist bdist_wheel
32+
33+ - name : Pypi Publish
34+ uses : pypa/gh-action-pypi-publish@release/v1
35+ with :
36+ user : __token__
37+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 11/build
2+ /dist
23/.vscode
34/* .egg-info
45/docs /build
You can’t perform that action at this time.
0 commit comments