From df63663421d184a2da73696bbf278e52eeba01f1 Mon Sep 17 00:00:00 2001 From: moritz-john <70295002+moritz-john@users.noreply.github.com> Date: Sun, 15 Jan 2023 12:14:43 +0100 Subject: [PATCH] Create zip_release.yml --- .github/workflows/zip_release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/zip_release.yml diff --git a/.github/workflows/zip_release.yml b/.github/workflows/zip_release.yml new file mode 100644 index 0000000..8f52d8b --- /dev/null +++ b/.github/workflows/zip_release.yml @@ -0,0 +1,26 @@ +name: Create ZIP & Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Firmware version' + default: 'v0.4' + required: true + +jobs: + zip-files: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: vimtor/action-zip@v1 + with: + files: lib/ utilities/ kb.py main.py + dest: klor_kmk_firmware.zip + - name: Upload Release + uses: ncipollo/release-action@v1.12.0 + with: + artifacts: "klor_kmk_firmware.zip" + name: "KLOR KMK Firmware" + tag: "${{ github.event.inputs.version }}" + token: ${{ secrets.GITHUB_TOKEN }}