Skip to content

Commit c98c2fe

Browse files
committed
Centroid files generation
1 parent 9993f5f commit c98c2fe

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
steps:
1515
- name: Checkout Repository
1616
uses: actions/checkout@v3
17-
- name: Generate Gerber, Drill Files and Documentation
17+
- name: Generate Gerber, Drill, Component Placement files and Documentation
1818
run: |
1919
mkdir -p build
2020
2121
- name: Run KiCad export
22-
uses: vikulin/kicad-action@main
22+
uses: vikulin/kicad-action@centroid_files
2323
with:
2424
kicad_sch: gamma-spectrometer.kicad_sch
2525
sch_pdf: true # Generate PDF
@@ -28,7 +28,10 @@ jobs:
2828
kicad_pcb: gamma-spectrometer.kicad_pcb
2929
pcb_gerbers: true # Generate Gerbers
3030
pcb_gerbers_file: build/open-gamma-kit-gerber-files-${{ github.ref_name }}.zip
31-
pcb_gerbers_layers: F.Cu,B.Cu,F.SilkS,B.SilkS,F.Mask,B.Mask,Edge.Cuts
31+
pcb_gerbers_layers: F.Cu,B.Cu,F.SilkS,B.SilkS,F.Mask,B.Mask,Edge.Cuts
32+
pcb_centroids: true # Generate centroid files
33+
pcb_centroids_file: build/open-gamma-kit-centroid-file-${{ github.ref_name }}.csv
34+
pcb_centroids_format: csv
3235

3336
- name: Upload Artifacts
3437
if: github.ref_type == 'tag'
@@ -37,6 +40,7 @@ jobs:
3740
name: ogk-release-${{ github.ref_name }}
3841
path: |
3942
build/open-gamma-kit-gerber-files-${{ github.ref_name }}.zip
43+
build/open-gamma-kit-centroid-files-${{ github.ref_name }}.zip
4044
docs/BOM.csv
4145
docs/open-gamma-kit-${{ github.ref_name }}.pdf
4246
@@ -58,6 +62,7 @@ jobs:
5862
echo "| File Name | Description |" >> RELEASE_BODY.md
5963
echo "|-------------------------------------------------------------|-----------------------------------------------------------------------------|" >> RELEASE_BODY.md
6064
echo "| \`open-gamma-kit-gerber-files-${{ github.ref_name }}.zip\` | 🟢 Complete Gerber and Drill files (Gerber X2 format) for PCB fabrication. |" >> RELEASE_BODY.md
65+
echo "| \`open-gamma-kit-centroid-files-<version>.zip\` | 📍 Centroid (Pick-and-Place) file in mils for automated assembly. |" >> RELEASE_BODY.md
6166
echo "| \`open-gamma-kit-${{ github.ref_name }}.pdf\` | 📄 PDF documentation |" >> RELEASE_BODY.md
6267
echo "| \`BOM.csv\` | 📋 Bill of Materials (not archived — listed separately). |" >> RELEASE_BODY.md
6368
echo "" >> RELEASE_BODY.md
@@ -72,6 +77,7 @@ jobs:
7277
body_path: RELEASE_BODY.md
7378
files: |
7479
build/open-gamma-kit-gerber-files-${{ github.ref_name }}.zip
80+
build/open-gamma-kit-centroid-files-${{ github.ref_name }}.zip
7581
docs/BOM.csv
7682
docs/open-gamma-kit-${{ github.ref_name }}.pdf
7783
env:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ OpenGammaKit is designed to be affordable, reliable, and easy to integrate with
2727

2828
## 📦 Release Contents
2929

30-
OpenGammaKit releases version **0.1.5.1** and later include all the fabrication files required to manufacture and assemble the OpenGammaKit gamma spectrometer hardware:
30+
OpenGammaKit releases version **0.1.5.4** and later include all the fabrication files required to manufacture and assemble the OpenGammaKit gamma spectrometer hardware:
3131

3232
| File Name | Description |
3333
| --------------------------------------------- | -------------------------------------------------------------------------- |
3434
| `open-gamma-kit-gerber-files-<version>.zip` | 🟢 Complete Gerber and Drill files for PCB fabrication. |
35+
| `open-gamma-kit-centroid-files-<version>.zip` | 📍 Centroid (Pick-and-Place) file in mils for automated assembly. |
3536
| `open-gamma-kit-<version>.pdf` | 📄 PDF documentation |
3637
| `BOM.csv` | 📋 Bill of Materials (not archived — listed separately). |
3738

0 commit comments

Comments
 (0)