-
Notifications
You must be signed in to change notification settings - Fork 233
72 lines (69 loc) · 2.3 KB
/
render-previews.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "**/*.kicad_pcb"
name: Render Previews
jobs:
pngs:
runs-on: ubuntu-latest
name: "Export as PNGs"
steps:
# CHECKOUT
- name: Checkout
uses: actions/checkout@v2
# PREVIEWS
- name: Sweep v2
uses: ./.github/actions/export-pngs
with:
pcb_file: '"./Sweep v2.2/sweepv2.kicad_pcb"'
pngs_dir: ./gallery/sweepv2
- name: Sweep Half Swept
uses: ./.github/actions/export-pngs
with:
pcb_file: '"./Sweep half-swept/half-swept.kicad_pcb"'
pngs_dir: ./gallery/sweep-half-swept
- name: Sweep High M
uses: ./.github/actions/export-pngs
with:
pcb_file: '"./Sweep High M/sweep-high.kicad_pcb"'
pngs_dir: ./gallery/sweep-high-m
- name: Sweep High
uses: ./.github/actions/export-pngs
with:
pcb_file: '"./Sweep High/sweep-high.kicad_pcb"'
pngs_dir: ./gallery/sweep-high
- name: Sweep Mini
uses: ./.github/actions/export-pngs
with:
pcb_file: '"./Sweep Mini/sweep-mini.kicad_pcb"'
pngs_dir: ./gallery/sweep-mini
- name: Sweep Bling MX
uses: ./.github/actions/export-pngs
with:
pcb_file: '"./Sweep Bling MX/pcb/sweep-bling-mx__pcb.kicad_pcb"'
pngs_dir: ./gallery/sweep-bling-mx
- name: Sweep Bling MX (plate)
uses: ./.github/actions/export-pngs
with:
pcb_file: '"./Sweep Bling MX/switch-plate/sweep-bling-mx__plate.kicad_pcb"'
pngs_dir: ./gallery/sweep-bling-mx-plate
- name: Sweep Bling MX (bottom)
uses: ./.github/actions/export-pngs
with:
pcb_file: '"./Sweep Bling MX/bottom-plate/sweep-bling-mx__bottom.kicad_pcb"'
pngs_dir: ./gallery/sweep-bling-mx-bottom
- name: Sweep Bling LP
uses: ./.github/actions/export-pngs
with:
pcb_file: '"./Sweep Bling LP/pcb/sweepbling-lp__pcb.kicad_pcb"'
pngs_dir: ./gallery/sweep-bling-lp
# UPDATE GALLERY
- name: Update gallery
uses: stefanzweifel/[email protected]
with:
commit_message: "Update gallery (automated)"
commit_user_name: GitHub Actions Bot
file_pattern: "**/*.png"