Skip to content

Commit

Permalink
Add release flows for each products
Browse files Browse the repository at this point in the history
  • Loading branch information
foostan committed Sep 5, 2020
1 parent 4ee2d1c commit dcee3df
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 26 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release-classic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Classic

on:
push:
tags:
- 'corne-classic-v[0-9]+.[0-9]+*'

jobs:
release-gerber-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- 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 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-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 }}
48 changes: 48 additions & 0 deletions .github/workflows/release-corne-cherry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Corne Cherry

on:
push:
tags:
- 'corne-cherry-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 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 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 }}
Original file line number Diff line number Diff line change
@@ -1,44 +1,23 @@
name: Release
name: Release Corne Chocolate

on:
push:
tags:
- 'v[0-9]+.[0-9]+*'
- 'corne-chocolate-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:
Expand All @@ -56,10 +35,7 @@ jobs:

- 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
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/release-corne-light.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Corne Light

on:
push:
tags:
- '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/[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-light-gerber.zip corne-light/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 }}

0 comments on commit dcee3df

Please sign in to comment.