corne/.github/workflows/release-corne-light.yml

60 lines
1.9 KiB
YAML
Raw Normal View History

2020-09-05 15:15:08 +02:00
name: Release Corne Light
on:
push:
tags:
2020-09-05 15:15:08 +02:00
- 'corne-light-v[0-9]+.[0-9]+*'
jobs:
release-gerber-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
2020-11-13 18:12:12 +01:00
- name: Export top-alps plate gerber
uses: nerdyscout/kicad-exports@v2.0
with:
config: .kiplot.yml
dir: plates/pcb/top-alps/gerber
2020-11-13 18:29:53 +01:00
board: plates/pcb/top-alps/corne-top-alps-plate.kicad_pcb
schema: plates/pcb/top-alps/corne-top-alps-plate.sch
- name: Zip Gerber files
run: |
zip -r --junk-paths corne-light-gerber.zip corne-light/gerber
zip -r --junk-paths plates-top-gerber.zip plates/pcb/top/gerber
2020-11-13 18:12:12 +01:00
zip -r --junk-paths plates-top-alps-gerber.zip plates/pcb/top-alps/gerber
zip -r --junk-paths plates-bottom-gerber.zip plates/pcb/bottom/gerber
2020-09-05 18:03:27 +02:00
zip -r --junk-paths plates.zip plates/common
2020-11-13 18:12:12 +01:00
zip -r --junk-paths plates-alps.zip plates/alps
zip -r --junk-paths plates-mini.zip plates/mini
2021-10-02 08:00:41 +02:00
- name: Release to GitHub
uses: softprops/action-gh-release@v1
with:
files: "*.zip"
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}