Skip to content

Commit e2a1d55

Browse files
committed
Fingers crossed
1 parent bd26a0f commit e2a1d55

File tree

3 files changed

+120
-122
lines changed

3 files changed

+120
-122
lines changed

.github/workflows/release.yml

Lines changed: 88 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
![]($BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top-3D.png) \
112-
![]($BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom-3D.png) \
113-
![]($BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top.png) \
114-
![]($BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom.png)"
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-
![]($BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top-3D.png) \
119-
![]($BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom-3D.png) \
120-
![]($BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Top.png) \
121-
![]($BASE_URL/${{ github.repository }}/releases/download/${{ steps.metadata.outputs.VERSION }}/${{ steps.metadata.outputs.NAME }}-${{ steps.metadata.outputs.VERSION }}-Bottom.png)"
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 }}"

.kibot/kibot-double-sided.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -89,38 +89,38 @@ outputs:
8989
format: png
9090
bottom: true
9191

92-
# - name: "3D Blender top image"
93-
# comment: "@NAME@ 3D render from top (High Quality)"
94-
# type: blender_export
95-
# options:
96-
# render_options:
97-
# background1: "#8FBCF7FF"
98-
# background2: "#0B1E35FF"
99-
# samples: 20
100-
# resolution_y: 1440
101-
# resolution_x: 2560
102-
# point_of_view:
103-
# rotate_x: -5
104-
# outputs:
105-
# - type: render
106-
# output: "@NAME@-%r-Top-3D.png"
92+
- name: "3D Blender top image"
93+
comment: "@NAME@ 3D render from top (High Quality)"
94+
type: blender_export
95+
options:
96+
render_options:
97+
background1: "#8FBCF7FF"
98+
background2: "#0B1E35FF"
99+
samples: 20
100+
resolution_y: 1440
101+
resolution_x: 2560
102+
point_of_view:
103+
rotate_x: -5
104+
outputs:
105+
- type: render
106+
output: "@NAME@-%r-Top-3D.png"
107107

108-
# - name: "3D Blender bootom image"
109-
# comment: "@NAME@ 3D render from bottom (High Quality)"
110-
# type: blender_export
111-
# options:
112-
# render_options:
113-
# background1: "#8FBCF7FF"
114-
# background2: "#0B1E35FF"
115-
# samples: 20
116-
# resolution_y: 1440
117-
# resolution_x: 2560
118-
# point_of_view:
119-
# rotate_x: 5
120-
# rotate_y: 180
121-
# outputs:
122-
# - type: render
123-
# output: "@NAME@-%r-Bottom-3D.png"
108+
- name: "3D Blender bootom image"
109+
comment: "@NAME@ 3D render from bottom (High Quality)"
110+
type: blender_export
111+
options:
112+
render_options:
113+
background1: "#8FBCF7FF"
114+
background2: "#0B1E35FF"
115+
samples: 20
116+
resolution_y: 1440
117+
resolution_x: 2560
118+
point_of_view:
119+
rotate_x: 5
120+
rotate_y: 180
121+
outputs:
122+
- type: render
123+
output: "@NAME@-%r-Bottom-3D.png"
124124

125125
- name: "Step file"
126126
comment: "@NAME@ Step file"

metadata.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ NAME=BSH-Board
22
KIBOT_CONFIG=.kibot/kibot-double-sided.yaml
33
VERSION=1.0-RC1
44
PCB_FILE=./BSH-Board.kicad_pcb
5-
SCH_FILE=./BSH-Board.kicad_sch
5+
SCH_FILE=./BSH-Board.kicad_sch

0 commit comments

Comments
 (0)