File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change 38
38
build_noarch_wheels :
39
39
name : Build iso2mesh wheels
40
40
runs-on : ubuntu-22.04
41
- outputs :
42
- perform_pypi_upload : ${{ steps.perform_pypi_upload_check.outputs.perform_pypi_upload }}
41
+ needs : run_unit_test
43
42
steps :
44
43
- name : Checkout repo
45
44
uses : actions/checkout@v3
@@ -51,27 +50,12 @@ jobs:
51
50
run : python3 -m build
52
51
- name : Check If the Build Version Exists on PyPI
53
52
id : perform_pypi_upload_check
53
+ shell : bash
54
54
run : |
55
- bash $GITHUB_WORKSPACE/.github/check-pypi-upload.sh
56
- - name : Prepare Wheels for Upload
57
- uses : actions/upload-artifact@v4
58
- with :
59
- name : noarch-wheels-${{ matrix.python_version }}
60
- path : dist/
61
-
62
- upload_noarch_wheels :
63
- needs : build_noarch_wheels
64
- runs-on : ubuntu-22.04
65
- if : ${{ github.repository_owner == 'fangq' && needs.build_noarch_wheels.outputs.perform_pypi_upload == 1 && github.event_name != 'pull_request'}}
66
- steps :
67
- - name : Download Wheels from Build Job
68
- uses : actions/download-artifact@v4
69
- with :
70
- pattern : noarch-wheels-*
71
- merge-multiple : true
72
- path : dist/
55
+ $GITHUB_WORKSPACE/.github/check-pypi-upload.sh
73
56
- name : Upload packages to PyPI
74
57
uses : pypa/gh-action-pypi-publish@release/v1
58
+ if : ${{ github.repository_owner == 'fangq' && steps.perform_pypi_upload_check.outputs.perform_pypi_upload == 1 && github.event_name != 'pull_request'}}
75
59
with :
76
60
password : ${{ secrets.PYPI_API_TOKEN }}
77
61
verify_metadata : false
You can’t perform that action at this time.
0 commit comments