File tree Expand file tree Collapse file tree 2 files changed +26
-29
lines changed Expand file tree Collapse file tree 2 files changed +26
-29
lines changed Original file line number Diff line number Diff line change 88 branches : ["main"]
99
1010jobs :
11- build_sdist :
12- name : Build source distribution
13- runs-on : ubuntu-latest
14- steps :
15- - uses : actions/checkout@v3
16- - name : Build sdist
17- run : pipx run build --sdist ${{github.workspace}}/python/
18- - name : Move sdist to dist
19- run : mkdir -p dist && mv ${{github.workspace}}/python/dist/*.tar.gz dist/
11+ build_sdist :
12+ name : Build source distribution
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - name : Build sdist
17+ run : pipx run build --sdist ${{github.workspace}}/python/
18+ - name : Move sdist to dist
19+ run : mkdir -p dist && mv ${{github.workspace}}/python/dist/*.tar.gz dist/
2020
21- - uses : actions/upload-artifact@v3
22- with :
23- path : dist/*.tar.gz
24-
25- pypi :
26- if : github.event_name == 'release'
27- needs : build_sdist
28- runs-on : ubuntu-latest
29- steps :
30- - uses : actions/download-artifact@v3
31- with :
32- name : artifact
33- path : dist
34-
35- - uses : pypa/gh-action-pypi-publish@release/v1
36- with :
37- password : ${{ secrets.PYPI_API_TOKEN }}
38-
21+ - uses : actions/upload-artifact@v4
22+ with :
23+ path : dist/*.tar.gz
3924
25+ pypi :
26+ if : github.event_name == 'release'
27+ needs : build_sdist
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/download-artifact@v4
31+ with :
32+ name : artifact
33+ path : dist
4034
35+ - uses : pypa/gh-action-pypi-publish@release/v1
36+ with :
37+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1212 matrix :
1313 os : [ubuntu-20.04, ubuntu-22.04]
1414 steps :
15- - uses : actions/checkout@v3
15+ - uses : actions/checkout@v4
1616 - name : Set up Python3
17- uses : actions/setup-python@v3
17+ uses : actions/setup-python@v4
1818 - name : Install dependencies
1919 run : |
2020 python -m pip install --upgrade pip
You can’t perform that action at this time.
0 commit comments