Add release gerber files GitHub Actions workflow

This commit is contained in:
carbncl 2020-08-01 18:28:51 +02:00 committed by Carb Uncle
parent 40fdc3ac79
commit b90089a159
4 changed files with 157 additions and 0 deletions

72
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,72 @@
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+*'
jobs:
release-gerber-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Export corne-cherry gerber
uses: nerdyscout/kicad-exports@v2.0
with:
config: .kiplot.yml
dir: corne-cherry/gerber
board: corne-cherry/pcb/corne-cherry.kicad_pcb
schema: corne-cherry/pcb/corne-cherry.sch
- name: Export corne-chocolate gerber
uses: nerdyscout/kicad-exports@v2.0
with:
config: .kiplot.yml
dir: corne-chocolate/gerber
board: corne-chocolate/pcb/corne-chocolate.kicad_pcb
schema: corne-chocolate/pcb/corne-chocolate.sch
- name: Export corne-classic gerber
uses: nerdyscout/kicad-exports@v2.0
with:
config: .kiplot.yml
dir: corne-classic/gerber
board: corne-classic/pcb/corne-classic.kicad_pcb
schema: corne-classic/pcb/corne-classic.sch
- name: Export corne-light gerber
uses: nerdyscout/kicad-exports@v2.0
with:
config: .kiplot.yml
dir: corne-light/gerber
board: corne-light/pcb/corne-light.kicad_pcb
schema: corne-light/pcb/corne-light.sch
- name: Export top plate gerber
uses: nerdyscout/kicad-exports@v2.0
with:
config: .kiplot.yml
dir: plates/pcb/top/gerber
board: plates/pcb/top/corne-top-plate.kicad_pcb
schema: plates/pcb/top/corne-top-plate.sch
- name: Export bottom plate gerber
uses: nerdyscout/kicad-exports@v2.0
with:
config: .kiplot.yml
dir: plates/pcb/bottom/gerber
board: plates/pcb/bottom/corne-bottom-plate.kicad_pcb
schema: plates/pcb/bottom/corne-bottom-plate.sch
- name: Zip Gerber files
run: |
zip -r --junk-paths corne-cherry-gerber.zip corne-cherry/gerber
zip -r --junk-paths corne-chocolate-gerber.zip corne-chocolate/gerber
zip -r --junk-paths corne-light-gerber.zip corne-light/gerber
zip -r --junk-paths corne-classic-gerber.zip corne-classic/gerber
zip -r --junk-paths plates-top-gerber.zip plates/pcb/top/gerber
zip -r --junk-paths plates-bottom-gerber.zip plates/pcb/bottom/gerber
- name: Release to GiHub
uses: softprops/action-gh-release@v1
with:
files: "*.zip"
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

53
.kiplot.yml Normal file
View File

@ -0,0 +1,53 @@
kiplot:
version: 1
preflight:
update_xml: false
run_drc: false
check_zone_fills: true
ignore_unconnected: false
# Note: these settings are the ones foostan is using, reference:
# https://github.com/foostan/crkbd/issues/11#issuecomment-450635794
outputs:
- name: "Gerber files"
type: gerber
options:
# generic layer options
exclude_edge_layer: true
exclude_pads_from_silkscreen: true
use_aux_axis_as_origin: false
plot_sheet_reference: false
plot_footprint_refs: true
plot_footprint_values: true
force_plot_invisible_refs_vals: false
tent_vias: true
# gerber options
line_width: 0.1
subtract_mask_from_silk: false
use_protel_extensions: false
gerber_precision: 4.6
create_gerber_job_file: false
use_gerber_x2_attributes: false
use_gerber_net_attributes: false
layers:
- layer: F.Cu
- layer: B.Cu
- layer: F.SilkS
- layer: B.SilkS
- layer: F.Mask
- layer: B.Mask
- layer: Edge.Cuts
- name: "Drill files"
type: excellon
options:
metric_units: true
pth_and_npth_single_file: false
use_aux_axis_as_origin: false
minimal_header: false
mirror_y_axis: false
map:
type: 'gerber'

View File

@ -0,0 +1,16 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$EndSCHEMATC

View File

@ -0,0 +1,16 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$EndSCHEMATC