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