From 1af9e536c560926b69abcd8fb5552b5b3c129f6b Mon Sep 17 00:00:00 2001 From: "Atsushi Morimoto (74th)" <74th.tech@gmail.com> Date: Mon, 12 Feb 2024 20:04:46 +0900 Subject: [PATCH] add ci --- .github/workflows/build.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0fd8533..60906b3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,7 +1,6 @@ name: build -on: - push: - workflow_dispatch: +on: push + jobs: build-m5dial-simple-pointer: runs-on: ubuntu-latest @@ -22,5 +21,17 @@ jobs: - name: Build run: cd m5dial-simple-pointer; - cp ssid.h.template ssid.h; + cp src/ssid.h.template src/ssid.h; pio run + + - name: rename + run: + cp m5dial-simple-pointer/.pio/build/m5dial/firmware.elf ./m5dial-simple-pointer.elf + cp m5dial-simple-pointer/.pio/build/m5dial/firmware.bin ./m5dial-simple-pointer.bin + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/m5dial-simple-pointer') + with: + files: | + m5dial-simple-pointer.elf + m5dial-simple-pointer.bin