Skip to content

Commit

Permalink
pcb release action
Browse files Browse the repository at this point in the history
  • Loading branch information
gcormier committed Mar 20, 2022
1 parent 0cd370c commit 3058f8d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/version_fab_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "KiBot - Fabrication and Documentation (tag + release)"
on:
push:
tags:
- pcb-v*


jobs:
FabricationOutputs:
env:
BaseFileName: megadesk
Timezone: America/New_york
OutputFolder: PCB/KiBotOutput
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: KiBot
uses: INTI-CMNB/KiBot@v1_k6
with:
config: PCB/.kibot/megadesk.kibot.yaml
dir: ${{ env.OutputFolder }}
schema: PCB/megadesk.kicad_sch
board: PCB/megadesk.kicad_pcb

- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ env.BaseFileName }}-${{ env.github_ref_name }}
path: ${{ env.OutputFolder }}/**

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ env.OutputFolder }}/*.zip
${{ env.OutputFolder }}/*.pdf

0 comments on commit 3058f8d

Please sign in to comment.