File tree Expand file tree Collapse file tree 1 file changed +21
-30
lines changed Expand file tree Collapse file tree 1 file changed +21
-30
lines changed Original file line number Diff line number Diff line change 1- # This is a basic workflow to help you get started with Actions
2-
31name : PyPI Publish
42
5- # Controls when the workflow will run
63on :
7- # Triggers the workflow on push or pull request events but only for the main branch
84 push :
9- branches : [ main ]
10- paths-ignore :
5+ branches : [main]
6+ paths-ignore :
117 - ' *.ipynb'
128 pull_request :
13- branches : [ main ]
14-
15- # Allows you to run this workflow manually from the Actions tab
9+ branches : [main]
1610 workflow_dispatch :
1711
1812jobs :
1913 build-n-publish :
20- name : PyPI Publish
14+ name : Build and Publish to PyPI
2115 runs-on : ubuntu-latest
16+
2217 steps :
23- - uses : actions/checkout@master
24- - name : Set up Python 3.9
25- uses : actions/setup-python@v1
18+ - name : Checkout code
19+ uses : actions/checkout@v4
20+
21+ - name : Set up Python
22+ uses : actions/setup-python@v5
2623 with :
27- python-version : 3.9
24+ python-version : ' pypy3.10'
25+
2826 - name : Install dependencies
2927 run : pip install -r requirements.txt
30- - name : Install pypa/build
31- run : >-
32- python -m
33- pip install
34- build
35- --user
36- - name : Build a binary wheel and a source tarball
37- run : >-
38- python -m
39- build
40- --sdist
41- --wheel
42- --outdir dist/
43- .
44- - name : Publish distribution 📦 to PyPI
45- uses : pypa/gh-action-pypi-publish@master
28+
29+ - name : Install build tool
30+ run : pip install build
31+
32+ - name : Build distributions
33+ run : python -m build --sdist --wheel --outdir dist
34+
35+ - name : Publish to PyPI
36+ uses : pypa/gh-action-pypi-publish@release/v1
4637 with :
4738 password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments