@@ -108,17 +108,17 @@ jobs:
108108 RELEASE_NAME="🚧 Pre-release ${{ steps.metadata.outputs.VERSION }}"
109109 RELEASE_BODY="Pre-release ${{ steps.metadata.outputs.VERSION }} - This is a pre-release version. \
110110 It may contain bugs and is not recommended for production use. Use with caution!\n\n\n \
111-  \
112-  \
113-  \
114-  "
111+ <img width='400' alt='Top 3D' src=' $BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top-3D.png' /> \
112+ <img width='400' alt='Bottom 3D' src=' $BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom-3D.png' /> \
113+ <img width='400' alt='Top' src=' $BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top.png' /> \
114+ <img width='400' alt='Bottom' src=' $BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom.png' /> "
115115 else
116116 RELEASE_NAME="🚀 Release ${{ steps.metadata.outputs.VERSION }}"
117117 RELEASE_BODY="Release ${{ steps.metadata.outputs.VERSION }}\n\n\n \
118-  \
119-  \
120-  \
121-  "
118+ <img width='400' alt='Top 3D' src=' $BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top-3D.png' /> \
119+ <img width='400' alt='Bottom 3D' src=' $BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom-3D.png' /> \
120+ <img width='400' alt='Top' src=' $BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top.png' /> \
121+ <img width='400' alt='Bottom' src=' $BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom.png' /> "
122122 fi
123123
124124 # Simple JSON without complex escaping
@@ -223,85 +223,83 @@ jobs:
223223 env :
224224 KIBOT_CONFIG : ${{ steps.metadata.outputs.KIBOT_CONFIG }}
225225 run : |
226- echo '${{ toJSON(steps.zip.outputs) }}' | jq '.'
227-
228- # curl -L \
229- # -X POST \
230- # -H "Accept: application/vnd.github+json" \
231- # -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
232- # -H "X-GitHub-Api-Version: 2022-11-28" \
233- # -H "Content-Type: application/octet-stream" \
234- # "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top.png" \
235- # --data-binary "@./output/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top.png"
236-
237- # curl -L \
238- # -X POST \
239- # -H "Accept: application/vnd.github+json" \
240- # -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
241- # -H "X-GitHub-Api-Version: 2022-11-28" \
242- # -H "Content-Type: application/octet-stream" \
243- # "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top-3D.png" \
244- # --data-binary "@./output/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top-3D.png"
245-
246- # curl -L \
247- # -X POST \
248- # -H "Accept: application/vnd.github+json" \
249- # -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
250- # -H "X-GitHub-Api-Version: 2022-11-28" \
251- # -H "Content-Type: application/octet-stream" \
252- # "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom.png" \
253- # --data-binary "@./output/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom.png"
254-
255- # curl -L \
256- # -X POST \
257- # -H "Accept: application/vnd.github+json" \
258- # -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
259- # -H "X-GitHub-Api-Version: 2022-11-28" \
260- # -H "Content-Type: application/octet-stream" \
261- # "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom-3D.png" \
262- # --data-binary "@./output/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom-3D.png"
263-
264- # curl -L \
265- # -X POST \
266- # -H "Accept: application/vnd.github+json" \
267- # -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
268- # -H "X-GitHub-Api-Version: 2022-11-28" \
269- # -H "Content-Type: application/octet-stream" \
270- # "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.zip.outputs.PRODUCTION_FILES }}" \
271- # --data-binary "@${{ steps.zip.outputs.PRODUCTION_FILES }}"
272-
273- # curl -L \
274- # -X POST \
275- # -H "Accept: application/vnd.github+json" \
276- # -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
277- # -H "X-GitHub-Api-Version: 2022-11-28" \
278- # -H "Content-Type: application/octet-stream" \
279- # "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.zip.outputs.STEP_FILE }}" \
280- # --data-binary "@${{ steps.zip.outputs.STEP_FILE }}"
281-
282- # curl -L \
283- # -X POST \
284- # -H "Accept: application/vnd.github+json" \
285- # -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
286- # -H "X-GitHub-Api-Version: 2022-11-28" \
287- # -H "Content-Type: application/octet-stream" \
288- # "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=JLCPCB-${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Gerber.zip" \
289- # --data-binary "@${{ steps.zip.outputs.JLCPCB_GERBER_FILES }}"
290-
291- # curl -L \
292- # -X POST \
293- # -H "Accept: application/vnd.github+json" \
294- # -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
295- # -H "X-GitHub-Api-Version: 2022-11-28" \
296- # -H "Content-Type: application/octet-stream" \
297- # "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=JLCPCB-${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-BOM.CSV" \
298- # --data-binary "@${{ steps.zip.outputs.JLCPCB_BOM_FILE }}"
299-
300- # curl -L \
301- # -X POST \
302- # -H "Accept: application/vnd.github+json" \
303- # -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
304- # -H "X-GitHub-Api-Version: 2022-11-28" \
305- # -H "Content-Type: application/octet-stream" \
306- # "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=JLCPCB-${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-CPL.CSV" \
307- # --data-binary "@${{ steps.zip.outputs.JLCPCB_CPL_FILE }}"
226+ curl -L \
227+ -X POST \
228+ -H "Accept: application/vnd.github+json" \
229+ -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
230+ -H "X-GitHub-Api-Version: 2022-11-28" \
231+ -H "Content-Type: application/octet-stream" \
232+ "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top.png" \
233+ --data-binary "@./output/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top.png"
234+
235+ curl -L \
236+ -X POST \
237+ -H "Accept: application/vnd.github+json" \
238+ -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
239+ -H "X-GitHub-Api-Version: 2022-11-28" \
240+ -H "Content-Type: application/octet-stream" \
241+ "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top-3D.png" \
242+ --data-binary "@./output/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top-3D.png"
243+
244+ curl -L \
245+ -X POST \
246+ -H "Accept: application/vnd.github+json" \
247+ -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
248+ -H "X-GitHub-Api-Version: 2022-11-28" \
249+ -H "Content-Type: application/octet-stream" \
250+ "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom.png" \
251+ --data-binary "@./output/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom.png"
252+
253+ curl -L \
254+ -X POST \
255+ -H "Accept: application/vnd.github+json" \
256+ -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
257+ -H "X-GitHub-Api-Version: 2022-11-28" \
258+ -H "Content-Type: application/octet-stream" \
259+ "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom-3D.png" \
260+ --data-binary "@./output/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom-3D.png"
261+
262+ curl -L \
263+ -X POST \
264+ -H "Accept: application/vnd.github+json" \
265+ -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
266+ -H "X-GitHub-Api-Version: 2022-11-28" \
267+ -H "Content-Type: application/octet-stream" \
268+ "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.zip.outputs.PRODUCTION_FILES }}" \
269+ --data-binary "@./output/${{ steps.zip.outputs.PRODUCTION_FILES }}"
270+
271+ curl -L \
272+ -X POST \
273+ -H "Accept: application/vnd.github+json" \
274+ -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
275+ -H "X-GitHub-Api-Version: 2022-11-28" \
276+ -H "Content-Type: application/octet-stream" \
277+ "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=${{ steps.zip.outputs.STEP_FILE }}" \
278+ --data-binary "@./output/${{ steps.zip.outputs.STEP_FILE }}"
279+
280+ curl -L \
281+ -X POST \
282+ -H "Accept: application/vnd.github+json" \
283+ -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
284+ -H "X-GitHub-Api-Version: 2022-11-28" \
285+ -H "Content-Type: application/octet-stream" \
286+ "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=JLCPCB-${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Gerber.zip" \
287+ --data-binary "@./output/${{ steps.zip.outputs.JLCPCB_GERBER_FILES }}"
288+
289+ curl -L \
290+ -X POST \
291+ -H "Accept: application/vnd.github+json" \
292+ -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
293+ -H "X-GitHub-Api-Version: 2022-11-28" \
294+ -H "Content-Type: application/octet-stream" \
295+ "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=JLCPCB-${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-BOM.CSV" \
296+ --data-binary "@./output/${{ steps.zip.outputs.JLCPCB_BOM_FILE }}"
297+
298+ curl -L \
299+ -X POST \
300+ -H "Accept: application/vnd.github+json" \
301+ -H "Authorization: Bearer ${{ secrets.TOKEN }}" \
302+ -H "X-GitHub-Api-Version: 2022-11-28" \
303+ -H "Content-Type: application/octet-stream" \
304+ "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ needs.release.outputs.RELEASE_ID }}/assets?name=JLCPCB-${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-CPL.CSV" \
305+ --data-binary "@./output/${{ steps.zip.outputs.JLCPCB_CPL_FILE }}"
0 commit comments