@@ -99,34 +99,34 @@ jobs:
99
99
100
100
- name : check if whl is new
101
101
id : check-whl
102
- uses : neuralmagic/nm-actions/actions/check-whl-on-pypi@scm
102
+ uses : neuralmagic/nm-actions/actions/check-whl-on-pypi@v1.18.0
103
103
with :
104
104
whl : ${{ steps.find-asset-whl.outputs.asset }}
105
105
106
106
- name : upload whl to "nm-pypi"
107
- if : ${{ inputs.push_to_pypi && steps.check-whl.outputs.status }}
107
+ if : ${{ steps.check-whl.outputs.status == '0' && inputs.push_to_pypi }}
108
108
uses : neuralmagic/nm-actions/actions/gcp-upload-asset@v1.1.0
109
109
with :
110
110
bucket_target : ${{ secrets.GCP_NM_PYPI_DIST }}
111
111
asset : ${{ steps.find-asset-whl.outputs.asset }}
112
112
113
113
- name : find tar.gz
114
- if : ${{ steps.check-whl.outputs.status }}
114
+ if : ${{ steps.check-whl.outputs.status == '0' && inputs.push_to_pypi }}
115
115
id : find-asset-targz
116
116
uses : neuralmagic/nm-actions/actions/find-asset@v1.1.0
117
117
with :
118
118
run_id : ${{ inputs.run_id }}
119
119
asset_identifier : ' compressed*.tar.gz'
120
120
121
121
- name : upload tar.gz to "nm-pypi"
122
- if : ${{ inputs.push_to_pypi && steps.check-whl.outputs.status }}
122
+ if : ${{ steps.check-whl.outputs.status =='0' && inputs.push_to_pypi }}
123
123
uses : neuralmagic/nm-actions/actions/gcp-upload-asset@v1.1.0
124
124
with :
125
125
bucket_target : ${{ secrets.GCP_NM_PYPI_DIST }}
126
126
asset : ${{ steps.find-asset-targz.outputs.asset }}
127
127
128
128
- name : update "nm-pypi" index
129
- if : ${{ steps.check-whl.outputs.status }}
129
+ if : ${{ steps.check-whl.outputs.status == '0' && inputs.push_to_pypi }}
130
130
uses : actions/github-script@v6
131
131
with :
132
132
github-token : ${{ secrets.NM_PYPI_WORKFLOW }}
@@ -141,7 +141,7 @@ jobs:
141
141
142
142
# publish the wheel file to public pypi
143
143
- name : push wheel to pypi.org
144
- if : ${{ inputs.push_to_pypi && steps.check-whl.outputs.status }}
144
+ if : ${{ steps.check-whl.outputs.status == '0' && inputs.push_to_pypi }}
145
145
uses : neuralmagic/nm-actions/actions/publish-whl@v1.0.0
146
146
with :
147
147
username : ${{ secrets.PYPI_PUBLIC_USER }}
@@ -150,7 +150,7 @@ jobs:
150
150
151
151
# publish the tar.gz file to public pypi
152
152
- name : push wheel to pypi.org
153
- if : ${{ inputs.push_to_pypi && steps.check-whl.outputs.status }}
153
+ if : ${{ steps.check-whl.outputs.status == '0' && inputs.push_to_pypi }}
154
154
uses : neuralmagic/nm-actions/actions/publish-whl@v1.0.0
155
155
with :
156
156
username : ${{ secrets.PYPI_PUBLIC_USER }}
0 commit comments