99 export-kicad :
1010 env :
1111 BaseFileName : " PMG"
12+ Folder : " ./pcb"
1213 SchematicFileExtension : " kicad_sch"
1314 PCBFileExtension : " kicad_pcb"
14- OutputFolder : " kicad "
15+ OutputFolder : " ./output "
1516 ConfigFilePath : " .kibot/release.kibot.yaml"
1617 runs-on : ubuntu-latest
1718 steps :
@@ -21,22 +22,17 @@ jobs:
2122 - name : Prepare output directory
2223 run : |
2324 mkdir -p ${{ env.OutputFolder }}
24- cp -r ./pcb ${{ env.OutputFolder }}/kicad
25+ cp -r ${{ env.Folder }} ${{ env.OutputFolder }}/kicad
2526 cp ./LICENSE ${{ env.OutputFolder }}
2627
27- - name : Copy License
28- run : |
29- mkdir -p ${{ env.OutputFolder }}
30- cp ./LICENSE ${{ env.OutputFolder }}
31-
3228 - name : Run KiBOT
33- uses : INTI-CMNB/KiBot@v2_dk7
29+ uses : INTI-CMNB/KiBot@v2_k9
3430 with :
3531 config : ${{ env.ConfigFilePath }}
3632 dir : ${{ env.OutputFolder }}
37- schema : " pcb /${{ env.BaseFileName }}.${{ env.SchematicFileExtension }}"
38- board : " pcb /${{ env.BaseFileName }}.${{ env.PCBFileExtension }}"
39-
33+ schema : " ${{ env.Folder }} /${{ env.BaseFileName }}.${{ env.SchematicFileExtension }}"
34+ board : " ${{ env.Folder }} /${{ env.BaseFileName }}.${{ env.PCBFileExtension }}"
35+
4036 - name : Archive artifacts
4137 uses : actions/upload-artifact@v4
4238 with :
@@ -46,25 +42,26 @@ jobs:
4642
4743 export-freecad :
4844 env :
49- FREECADVERSION : " 0.21.2 "
45+ FREECADVERSION : " 1.1.1 "
5046 FreeCADFileName : " ./mechanical/housing.FCStd"
5147 OutputFolder : " ./output"
5248 PartType : " PartDesign::Body"
5349 runs-on : ubuntu-latest
5450 steps :
5551 - name : Fetch repository
5652 uses : actions/checkout@v4
57-
53+
5854 - name : Prepare output directory
5955 run : |
6056 mkdir -p ${{ env.OutputFolder }}
57+ cp -r ./mechanical ${{ env.OutputFolder }}
6158 cp ./LICENSE ${{ env.OutputFolder }}
62-
59+
6360 - name : Install FreeCAD
6461 run : |
65- wget https://github.com/FreeCAD/FreeCAD/releases/download/${{ env.FREECADVERSION }}/FreeCAD- ${{ env.FREECADVERSION }}-Linux-x86_64.AppImage
66- chmod 0777 ./FreeCAD- ${{ env.FREECADVERSION }}-Linux-x86_64.AppImage
67- ./FreeCAD- ${{ env.FREECADVERSION }}-Linux-x86_64.AppImage --appimage-extract
62+ wget https://github.com/FreeCAD/FreeCAD/releases/download/${{ env.FREECADVERSION }}/FreeCAD_ ${{ env.FREECADVERSION }}-Linux-x86_64-py311 .AppImage
63+ chmod 0777 FreeCAD_ ${{ env.FREECADVERSION }}-Linux-x86_64-py311 .AppImage
64+ ./FreeCAD_ ${{ env.FREECADVERSION }}-Linux-x86_64-py311 .AppImage --appimage-extract
6865 - name : Get FreeCAD Export
6966 run : |
7067 git clone https://github.com/0x007E/pyfreecadexport.git
@@ -160,6 +157,26 @@ jobs:
160157 asset_path : ./artifact/kicad/drill/PMG-drill_map.pdf
161158 asset_name : drill.pdf
162159 asset_content_type : application/pdf
160+
161+ - name : Upload KiCAD BOM
162+ uses : actions/upload-release-asset@v1
163+ env :
164+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
165+ with :
166+ upload_url : ${{ steps.create_release.outputs.upload_url }}
167+ asset_path : ./artifact/kicad/bom/PMG-bom.xlsx
168+ asset_name : bom.xlsx
169+ asset_content_type : application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
170+
171+ - name : Upload KiCAD iBOM
172+ uses : actions/upload-release-asset@v1
173+ env :
174+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
175+ with :
176+ upload_url : ${{ steps.create_release.outputs.upload_url }}
177+ asset_path : ./artifact/kicad/ibom/IBOM.html
178+ asset_name : bom.html
179+ asset_content_type : text/html
163180
164181 - name : Upload KiCAD Asset
165182 uses : actions/upload-release-asset@v1
@@ -214,4 +231,5 @@ jobs:
214231 upload_url : ${{ steps.create_release.outputs.upload_url }}
215232 asset_path : ./artifact/freecad.zip
216233 asset_name : freecad.zip
217- asset_content_type : application/zip
234+ asset_content_type : application/zip
235+
0 commit comments