50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
name: Release Corne Chocolate
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'corne-chocolate-v[0-9]+.[0-9]+*'
|
|
|
|
jobs:
|
|
release-gerber-files:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- 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 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-chocolate-gerber.zip corne-chocolate/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
|
|
zip -r --junk-paths plates.zip plates/common
|
|
|
|
- name: Release to GitHub
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: "*.zip"
|
|
draft: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|