@@ -186,15 +186,9 @@ jobs:
186186 details : Technical CI
187187 webhookUrl : ${{ secrets.DISCORD_WEBHOOK }}
188188
189- deploy :
189+ build :
190190 needs : [ test, test_windows ]
191191 runs-on : ubuntu-22.04
192- if : (github.event_name == 'push' || github.event_name == 'release') && github.repository == 'freqtrade/technical'
193- environment :
194- name : release
195- url : https://pypi.org/p/technical
196- permissions :
197- id-token : write
198192 steps :
199193 - uses : actions/checkout@v4
200194
@@ -214,15 +208,60 @@ jobs:
214208 pip install -U build
215209 python -m build --sdist --wheel
216210
211+ - name : Upload artifacts 📦
212+ uses : actions/upload-artifact@v4
213+ with :
214+ name : technical
215+ path : |
216+ dist
217+ retention-days : 10
218+
219+ deploy-test-pypi :
220+ if : (github.event_name == 'release') && github.repository == 'freqtrade/technical'
221+ needs : [ build ]
222+ runs-on : ubuntu-22.04
223+ environment :
224+ name : pypi-test
225+ url : https://test.pypi.org/p/technical
226+ permissions :
227+ id-token : write
228+
229+ steps :
230+
231+ - name : Download artifact 📦
232+ uses : actions/download-artifact@v4
233+ with :
234+ name : technical
235+ path : dist
236+ merge-multiple : true
237+
217238 - name : Publish to PyPI (Test)
218239219240 if : (github.event_name == 'release')
220241 with :
221242 repository-url : https://test.pypi.org/legacy/
222243
244+ deploy-pypi :
245+ if : (github.event_name == 'release') && github.repository == 'freqtrade/technical'
246+ needs : [ build ]
247+ runs-on : ubuntu-22.04
248+ environment :
249+ name : pypi
250+ url : https://pypi.org/p/technical
251+ permissions :
252+ id-token : write
253+
254+ steps :
255+
256+ - name : Download artifact 📦
257+ uses : actions/download-artifact@v4
258+ with :
259+ name : technical
260+ path : dist
261+ merge-multiple : true
262+
223263 - name : Publish to PyPI
224264225- if : (github.event_name == 'release')
226265
227266 - name : Discord notification
228267 uses : rjstone/discord-webhook-notify@v1
0 commit comments