File tree Expand file tree Collapse file tree 2 files changed +31
-6
lines changed Expand file tree Collapse file tree 2 files changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ jobs:
140140 fetch-depth : 0 # required to see tags and commits
141141 ref : ${{ github.sha }} # in case 'ref' (arg default) has been updated since start
142142 token : ${{ secrets.PERSONAL_ACCESS_TOKEN }} # so a new tag can trigger workflows
143+
143144 - uses : actions/setup-python@v5
144145 with :
145146 python-version : " ${{ fromJSON(needs.py-versions.outputs.matrix)[0] }}"
Original file line number Diff line number Diff line change @@ -16,30 +16,54 @@ jobs:
1616 - id : versions
1717 uses : WIPACrepo/wipac-dev-py-versions-action@v2.5
1818
19- release :
20- if : github.ref_type == 'tag' # redundant b/c workflow's 'on'
19+ py-build :
2120 needs : [ py-versions ]
2221 runs-on : ubuntu-latest
23- concurrency : release # prevent any possible race conditions
2422 steps :
2523 - uses : actions/checkout@v4
2624 with :
27- fetch-depth : 0 # required to see tags and commits
28- ref : ${{ github.sha }} # in case 'ref' (arg default) has been updated since start
25+ fetch-depth : 0
26+ ref : ${{ github.sha }}
27+
2928 - uses : actions/setup-python@v5
3029 with :
3130 python-version : " ${{ fromJSON(needs.py-versions.outputs.matrix)[0] }}"
3231
3332 - uses : WIPACrepo/wipac-dev-py-build-action@main
3433
34+ - name : Upload dist/ artifact
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : dist
38+ path : dist/
39+
40+ github-release :
41+ needs : [ py-build ]
42+ runs-on : ubuntu-latest
43+ steps :
44+ - name : Download dist/ artifact
45+ uses : actions/download-artifact@v4
46+ with :
47+ name : dist
48+ path : dist/
49+
3550 - uses : softprops/action-gh-release@v2
36- # uses 'github.ref_name' as associated tag
3751 with :
3852 files : dist/*
3953 generate_release_notes : true
4054 env :
4155 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4256
57+ pypi-publish :
58+ needs : [ py-build ]
59+ runs-on : ubuntu-latest
60+ steps :
61+ - name : Download dist/ artifact
62+ uses : actions/download-artifact@v4
63+ with :
64+ name : dist
65+ path : dist/
66+
4367 - uses : pypa/gh-action-pypi-publish@release/v1
4468 with :
4569 user : __token__
You can’t perform that action at this time.
0 commit comments