-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (42 loc) · 1.57 KB
/
generate.ESPlant-Board.workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Export ESPlant-Board with KiCad
on:
push:
paths:
- "ESPlant-Board/ESPlant-Board.kicad_sch"
- "ESPlant-Board/ESPlant-Board.kicad_pcb"
- .github/workflows/generate.ESPlant-Board.workflow.yml
workflow_dispatch:
jobs:
export:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Add KiCad PPA and install KiCad
run: |
sudo add-apt-repository --yes ppa:kicad/kicad-7.0-releases
sudo apt update
sudo apt install --install-recommends kicad
- name: Export ESPlant-Board schematic with KiCad
run: |
kicad-cli sch export pdf ESPlant-Board/ESPlant-Board.kicad_sch
- name: Move pdf to dist folder
run: |
mkdir -p ESPlant-Board/dist
mv ESPlant-Board.pdf ESPlant-Board/dist/ESPlant-Board-schematic.pdf
- name: Export ESPlant-Board pcb with KiCad
run: |
kicad-cli pcb export pdf ESPlant-Board/ESPlant-Board.kicad_pcb --layers F.Cu,B.Cu,F.Silkscreen,B.Silkscreen,User.Drawings,User.Comments,Edge.Cuts
- name: Move pdf to dist folder
run: |
mv ESPlant-Board.pdf ESPlant-Board/dist/ESPlant-Board-pcb.pdf
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Board: [bot] Update ESPlant-Board pdfs"
commit_options: "--no-verify --signoff"
file_pattern: ESPlant-Board/dist/*.pdf
branch: bot
create_branch: true
push_options: "--force-with-lease"