Skip to content

Commit f442d7e

Browse files
add git push back in, change trigger for builds
1 parent 9edfd10 commit f442d7e

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

.github/workflows/ayab-esp32-documentation.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@ name: AYAB ESP32 Fabrication Outputs
22

33
on:
44
workflow_dispatch:
5-
6-
pull_request:
7-
branches:
8-
- main
9-
paths:
10-
- ayab-esp32/**
115

126
push:
137
branches:
148
- main
159
paths:
1610
- ayab-esp32/**
11+
- ayab-library/**
1712

1813
env:
1914
workflow_project_dir: ayab-esp32
@@ -40,6 +35,8 @@ jobs:
4035
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=Reference/${kicad_project_name}-assembly.pdf ${copper_files}
4136
sudo rm ${copper_files}
4237
38+
sudo mv Reference ${workflow_project_dir}/Reference
39+
4340
- name: Export gerbers and assembly documentation
4441
run: |
4542
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,6 +51,16 @@ jobs:
5451
sudo mv Outputs/raw-bom.csv Outputs/${kicad_project_name}-bom.csv
5552
sudo mv Outputs/raw-pos.csv Outputs/${kicad_project_name}-pos.csv
5653
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+
5764
- name: Archive artifacts
5865
uses: actions/upload-artifact@v4
5966
if: always()
@@ -66,4 +73,4 @@ jobs:
6673
if: always()
6774
with:
6875
name: reference-artifacts
69-
path: Reference/
76+
path: ayab-esp32/Reference/

.github/workflows/ayab-shield-documentation.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,11 @@ name: AYAB Shield Fabrication Outputs
22

33
on:
44
workflow_dispatch:
5-
6-
pull_request:
7-
branches:
8-
- main
9-
paths:
10-
- ayab-shield/**
115

126
push:
13-
branches:
14-
- main
157
paths:
168
- ayab-shield/**
9+
- ayab-library/**
1710

1811
env:
1912
workflow_project_dir: ayab-shield
@@ -40,6 +33,8 @@ jobs:
4033
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=Reference/${kicad_project_name}-assembly.pdf ${copper_files}
4134
sudo rm ${copper_files}
4235
36+
sudo mv Reference ${workflow_project_dir}/Reference
37+
4338
- name: Export gerbers and assembly documentation
4439
run: |
4540
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,6 +48,16 @@ jobs:
5348
5449
sudo mv Outputs/raw-bom.csv Outputs/${kicad_project_name}-bom.csv
5550
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
5661
5762
- name: Archive artifacts
5863
uses: actions/upload-artifact@v4
@@ -66,4 +71,4 @@ jobs:
6671
if: always()
6772
with:
6873
name: reference-artifacts
69-
path: Reference/
74+
path: ayab-shield/Reference/

0 commit comments

Comments
 (0)