From 3058f8d16538d5d7ae41d40c2aaff666219c76a4 Mon Sep 17 00:00:00 2001 From: Greg Cormier Date: Sun, 20 Mar 2022 14:55:46 -0400 Subject: [PATCH] pcb release action --- .github/version_fab_release.yml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/version_fab_release.yml diff --git a/.github/version_fab_release.yml b/.github/version_fab_release.yml new file mode 100644 index 0000000..2ea8a9e --- /dev/null +++ b/.github/version_fab_release.yml @@ -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 + \ No newline at end of file