File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+
6+ # GitHub recommends pinning actions to a commit SHA.
7+ # To get a newer version, you will need to update the SHA.
8+ # You can also reference a tag or branch, but the action may change without warning.
9+
10+ name : Upload Python Package
11+
12+ on :
13+ release :
14+ type : [ published ]
15+
16+ jobs :
17+ deploy :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+ - name : Set up Python
22+ uses : actions/setup-python@v4
23+ with :
24+ python-version : ' 3.x'
25+ - name : Install dependencies
26+ run : |
27+ python -m pip install --upgrade pip
28+ pip install build
29+ - name : Build package
30+ run : python -m build
31+ - name : Publish package to PyPI
32+ uses : pypa/gh-action-pypi-publish@release/v1
33+ with :
34+ password : ${{ secrets.PYPI_API_TOKEN }}
35+
You can’t perform that action at this time.
0 commit comments