File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ # Workflow for publishing module package to https://pypi.org.
2+ name : PyPI Package Publish
3+
4+ on :
5+ # trigger this workflow when a release is published.
6+ release :
7+ types : [published]
8+
9+ jobs :
10+ publish :
11+ runs-on : ubuntu-latest
12+ steps :
13+ # Checks-out your repository under $GITHUB_WORKSPACE , so your workflow can access it.
14+ - name : Checkout
15+ uses : actions/checkout@v3
16+ with :
17+ fetch-depth : 0
18+ # Run build to a specified version of python into a specified directory.
19+ - name : Python Build
20+ run : python3 -m pip install --upgrade build && python3 -m build
21+ # Publish the python package to pypi.org with the api token.
22+ - name : Publish Package
23+ uses : pypa/gh-action-pypi-publish@release/v1
24+ with :
25+ user : __token__
26+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments