From 516a8d0a706863159ff6360228bedf55eb662e42 Mon Sep 17 00:00:00 2001 From: Matt Harlum Date: Sat, 15 Apr 2023 04:50:29 +0000 Subject: [PATCH] Add GitHub release automation --- .github/workflows/release.yml | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b981440 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,58 @@ +name: Generate release files + +permissions: + contents: write +on: + push: + tags: + - "Release_**" + - "Rev**" + - "Proto**" + - "proto**" + workflow_dispatch: + +jobs: + kicad_outputs: + runs-on: ubuntu-latest + container: setsoft/kicad_auto:ki6.0.7_Debian + steps: + - name: checkout + uses: actions/checkout@v3 + - name: Generate outputs + run: kibot -c kibot/release.kibot.yaml + working-directory: Kicad + - uses: actions/upload-artifact@master + with: + name: Gerbers + path: Gerbers/* + - uses: actions/upload-artifact@master + with: + name: kicad + path: | + Docs/*.pdf + Docs/*.html + Docs/*.png + Gerbers/*.csv + + draft_release: + runs-on: ubuntu-latest + needs: + - kicad_outputs + + steps: + - name: Checkout + uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 + with: + path: artifacts + - name: Zip Gerbers + run: zip -r Gerbers.zip Gerbers + working-directory: artifacts + - name: release + uses: softprops/action-gh-release@v1 + with: + draft: true + files: | + Binary/*.jed + artifacts/Gerbers.zip + artifacts/kicad/**/*