File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 types : [published]
66
77jobs :
8- publish :
8+ build :
99 runs-on : ubuntu-latest
10+ permissions : {}
1011 steps :
11- - uses : actions/checkout@v3
12- - uses : actions/setup-python@v4
12+ - uses : actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26
13+ - uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c
1314 with :
1415 python-version : " 3.x"
1516 - name : Build package
1617 run : |
1718 python -m pip install --upgrade pip
1819 pip install build
1920 python -m build
21+ - name : Upload package artifacts
22+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
23+ with :
24+ name : python-dist
25+ path : dist/*
26+ if-no-files-found : error
27+
28+ publish-pypi :
29+ needs : build
30+ runs-on : ubuntu-latest
31+ permissions : {}
32+ steps :
33+ - name : Download package artifacts
34+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
35+ with :
36+ name : python-dist
37+ path : dist
2038 - name : Publish to PyPI
21- uses : pypa/gh-action-pypi-publish@release/v1
39+ uses : pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33
2240 with :
2341 user : __token__
2442 password : ${{ secrets.PYPI_API_TOKEN }}
43+
44+ attach-release-assets :
45+ needs : [build, publish-pypi]
46+ runs-on : ubuntu-latest
47+ permissions :
48+ contents : write
49+ steps :
50+ - name : Download package artifacts
51+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
52+ with :
53+ name : python-dist
54+ path : dist
2555 - name : Attach artifacts to release
26- uses : softprops/action-gh-release@v1
56+ uses : softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
2757 with :
2858 files : dist/*
You can’t perform that action at this time.
0 commit comments