Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release gerber files GitHub Actions workflow #59

Merged
merged 1 commit into from
Sep 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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 changes: 53 additions & 0 deletions .kiplot.yml
Original file line number Diff line number Diff line change
@@ -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'
16 changes: 16 additions & 0 deletions plates/pcb/bottom/corne-bottom-plate.sch
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions plates/pcb/top/corne-top-plate.sch
Original file line number Diff line number Diff line change
@@ -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