2222 octoprint-version : ${{ env.OCTOPRINT_VERSION }}
2323 octopi-version : ${{ env.OCTOPI_VERSION }}
2424 tag : ${{ env.RELEASE_TAG }}
25+ image-zip : ${{ env.IMAGE_ZIP }}
26+ image-url : ${{ env.IMAGE_URL }}
2527 steps :
2628
2729 - name : " ⬇ Checkout"
@@ -189,13 +191,18 @@ jobs:
189191 with :
190192 image_path : " build/${{ env.IMAGE }}"
191193
194+ - name : 📨 Export zip name and URL to env
195+ run : |
196+ echo "IMAGE_ZIP=${{ steps.package-image.outputs.zip_name }}" >> $GITHUB_ENV
197+ echo "IMAGE_URL=https://github.com/OctoPrint/OctoPi-UpToDate/releases/download/${{ env.RELEASE_TAG }}/${{ steps.package-image.outputs.zip_name }}" >> $GITHUB_ENV
198+
192199 - name : " 🆕 Generate rpi-imager.json snippet"
193200 uses : OctoPrint/actions/rpi-imager-snippet@main
194201 with :
195202 name : " ${{ env.RELEASE_NAME }}"
196203 description : " A Raspberry Pi distribution for 3d printers. Ships OctoPrint ${{ env.OCTOPRINT_VERSION }} out-of-the-box."
197204 icon : " https://octopi.octoprint.org/rpi-imager.png"
198- url : " https://github.com/OctoPrint/OctoPi-UpToDate/releases/download/ ${{ env.RELEASE_TAG }}/${{ steps.package-image.outputs.zip_name }}"
205+ url : " ${{ env.IMAGE_URL }}"
199206 output : " build/rpi-imager.json"
200207 image_sha256 : ${{ steps.package-image.outputs.image_sha256 }}
201208 image_size : ${{ steps.package-image.outputs.image_size }}
@@ -211,17 +218,30 @@ jobs:
211218 prerelease : ${{ contains(env.OCTOPRINT_VERSION, 'rc') }}
212219 fail_on_unmatched_files : true
213220 files : |
214- build/${{ steps.package-image.outputs.zip_name }}
215- build/${{ steps.package-image.outputs.zip_name }}.md5
216- build/${{ steps.package-image.outputs.zip_name }}.sha256
221+ build/${{ env.IMAGE_ZIP }}
222+ build/${{ env.IMAGE_ZIP }}.md5
223+ build/${{ env.IMAGE_ZIP }}.sha256
217224 build/rpi-imager.json
218225 env :
219226 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
220227
228+ test :
229+ name : " Test"
230+ runs-on : ubuntu-latest
231+ needs : build
232+ steps :
233+ - name : 🏃♀️ Run test against testrig
234+ uses : jonas-schievink/workflow-proxy@v1
235+ with :
236+ token : ${{ secrets.DISPATCH_TOKEN }}
237+ workflow : Test against testrig
238+ repo : OctoPrint/devtools
239+ inputs : ' {"image": "${{ needs.build.outputs.image-url }}", "target": "pic"}'
240+
221241 deploy :
222242 name : " Deploy"
223243 runs-on : ubuntu-latest
224- needs : build
244+ needs : test
225245 environment : live
226246 steps :
227247
0 commit comments