File tree Expand file tree Collapse file tree 2 files changed +28
-16
lines changed Expand file tree Collapse file tree 2 files changed +28
-16
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,13 @@ name: AYAB ESP32 Fabrication Outputs
2
2
3
3
on :
4
4
workflow_dispatch :
5
-
6
- pull_request :
7
- branches :
8
- - main
9
- paths :
10
- - ayab-esp32/**
11
5
12
6
push :
13
7
branches :
14
8
- main
15
9
paths :
16
10
- ayab-esp32/**
11
+ - ayab-library/**
17
12
18
13
env :
19
14
workflow_project_dir : ayab-esp32
40
35
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=Reference/${kicad_project_name}-assembly.pdf ${copper_files}
41
36
sudo rm ${copper_files}
42
37
38
+ sudo mv Reference ${workflow_project_dir}/Reference
39
+
43
40
- name : Export gerbers and assembly documentation
44
41
run : |
45
42
kicad-cli jobset run --file ./ayab-library/ayab-jobset.kicad_jobset --output aeb40242-edfd-4f73-854b-b9cc9a052a15 ./${workflow_project_dir}/${kicad_project_name}.kicad_pro
54
51
sudo mv Outputs/raw-bom.csv Outputs/${kicad_project_name}-bom.csv
55
52
sudo mv Outputs/raw-pos.csv Outputs/${kicad_project_name}-pos.csv
56
53
54
+ - name : Add reference materials to repo
55
+ env :
56
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
+ run : |
58
+ git config --global user.email "robot@ayabknitting.com"
59
+ git config --global user.name "robot"
60
+ git add ${workflow_project_dir}/Reference/*
61
+ git commit -m "Add design file PDFs to repo [skip ci]"
62
+ git push
63
+
57
64
- name : Archive artifacts
58
65
uses : actions/upload-artifact@v4
59
66
if : always()
66
73
if : always()
67
74
with :
68
75
name : reference-artifacts
69
- path : Reference/
76
+ path : ayab-esp32/ Reference/
Original file line number Diff line number Diff line change @@ -2,18 +2,11 @@ name: AYAB Shield Fabrication Outputs
2
2
3
3
on :
4
4
workflow_dispatch :
5
-
6
- pull_request :
7
- branches :
8
- - main
9
- paths :
10
- - ayab-shield/**
11
5
12
6
push :
13
- branches :
14
- - main
15
7
paths :
16
8
- ayab-shield/**
9
+ - ayab-library/**
17
10
18
11
env :
19
12
workflow_project_dir : ayab-shield
40
33
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=Reference/${kicad_project_name}-assembly.pdf ${copper_files}
41
34
sudo rm ${copper_files}
42
35
36
+ sudo mv Reference ${workflow_project_dir}/Reference
37
+
43
38
- name : Export gerbers and assembly documentation
44
39
run : |
45
40
kicad-cli jobset run --file ./ayab-library/ayab-jobset.kicad_jobset --output aeb40242-edfd-4f73-854b-b9cc9a052a15 ./${workflow_project_dir}/${kicad_project_name}.kicad_pro
53
48
54
49
sudo mv Outputs/raw-bom.csv Outputs/${kicad_project_name}-bom.csv
55
50
sudo mv Outputs/raw-pos.csv Outputs/${kicad_project_name}-pos.csv
51
+
52
+ - name : Add reference materials to repo
53
+ env :
54
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55
+ run : |
56
+ git config --global user.email "robot@ayabknitting.com"
57
+ git config --global user.name "robot"
58
+ git add ${workflow_project_dir}/Reference/*
59
+ git commit -m "Add design file PDFs to repo [skip ci]"
60
+ git push
56
61
57
62
- name : Archive artifacts
58
63
uses : actions/upload-artifact@v4
66
71
if : always()
67
72
with :
68
73
name : reference-artifacts
69
- path : Reference/
74
+ path : ayab-shield/ Reference/
You can’t perform that action at this time.
0 commit comments