2022-05-25 13:24:10 +02:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- "**/*.kicad_pcb"
|
2022-05-18 09:45:40 +02:00
|
|
|
|
|
|
|
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:
|
2022-09-02 18:16:38 +02:00
|
|
|
pcb_file: '"./Sweep v2.2/sweepv2.kicad_pcb"'
|
2022-05-25 13:24:10 +02:00
|
|
|
pngs_dir: ./gallery/sweepv2
|
2022-05-18 09:45:40 +02:00
|
|
|
- name: Sweep Half Swept
|
|
|
|
uses: ./.github/actions/export-pngs
|
|
|
|
with:
|
2022-09-02 18:16:38 +02:00
|
|
|
pcb_file: '"./Sweep half-swept/half-swept.kicad_pcb"'
|
2022-05-25 13:24:10 +02:00
|
|
|
pngs_dir: ./gallery/sweep-half-swept
|
2022-05-18 09:45:40 +02:00
|
|
|
- name: Sweep High M
|
|
|
|
uses: ./.github/actions/export-pngs
|
|
|
|
with:
|
|
|
|
pcb_file: '"./Sweep High M/sweep-high.kicad_pcb"'
|
2022-05-25 13:24:10 +02:00
|
|
|
pngs_dir: ./gallery/sweep-high-m
|
2022-05-18 09:45:40 +02:00
|
|
|
- name: Sweep High
|
|
|
|
uses: ./.github/actions/export-pngs
|
|
|
|
with:
|
|
|
|
pcb_file: '"./Sweep High/sweep-high.kicad_pcb"'
|
2022-05-25 13:24:10 +02:00
|
|
|
pngs_dir: ./gallery/sweep-high
|
2022-09-02 18:16:38 +02:00
|
|
|
- name: Sweep Mini
|
2022-05-18 09:45:40 +02:00
|
|
|
uses: ./.github/actions/export-pngs
|
|
|
|
with:
|
2022-09-02 18:16:38 +02:00
|
|
|
pcb_file: '"./Sweep Mini/sweep-mini.kicad_pcb"'
|
|
|
|
pngs_dir: ./gallery/sweep-mini
|
2022-05-18 09:45:40 +02:00
|
|
|
- name: Sweep Bling MX
|
|
|
|
uses: ./.github/actions/export-pngs
|
|
|
|
with:
|
|
|
|
pcb_file: '"./Sweep Bling MX/pcb/sweep-bling-mx__pcb.kicad_pcb"'
|
2022-05-25 13:24:10 +02:00
|
|
|
pngs_dir: ./gallery/sweep-bling-mx
|
2022-05-18 09:45:40 +02:00
|
|
|
- name: Sweep Bling MX (plate)
|
|
|
|
uses: ./.github/actions/export-pngs
|
|
|
|
with:
|
|
|
|
pcb_file: '"./Sweep Bling MX/switch-plate/sweep-bling-mx__plate.kicad_pcb"'
|
2022-05-25 13:24:10 +02:00
|
|
|
pngs_dir: ./gallery/sweep-bling-mx-plate
|
2022-05-18 09:45:40 +02:00
|
|
|
- name: Sweep Bling MX (bottom)
|
|
|
|
uses: ./.github/actions/export-pngs
|
|
|
|
with:
|
|
|
|
pcb_file: '"./Sweep Bling MX/bottom-plate/sweep-bling-mx__bottom.kicad_pcb"'
|
2022-05-25 13:24:10 +02:00
|
|
|
pngs_dir: ./gallery/sweep-bling-mx-bottom
|
2022-05-18 09:45:40 +02:00
|
|
|
- name: Sweep Bling LP
|
|
|
|
uses: ./.github/actions/export-pngs
|
|
|
|
with:
|
|
|
|
pcb_file: '"./Sweep Bling LP/pcb/sweepbling-lp__pcb.kicad_pcb"'
|
2022-05-25 13:24:10 +02:00
|
|
|
pngs_dir: ./gallery/sweep-bling-lp
|
2022-05-18 09:45:40 +02:00
|
|
|
|
2022-05-25 13:24:10 +02:00
|
|
|
# UPDATE GALLERY
|
|
|
|
- name: Update gallery
|
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4.14.1
|
2022-05-18 09:45:40 +02:00
|
|
|
with:
|
2022-05-25 13:24:10 +02:00
|
|
|
commit_message: "Update gallery (automated)"
|
|
|
|
commit_user_name: GitHub Actions Bot
|
|
|
|
file_pattern: "**/*.png"
|