From 8778222fe1bf9559b60d7c5c0abb54868a92c4e1 Mon Sep 17 00:00:00 2001 From: "Atsushi Morimoto (74th)" <74th.tech@gmail.com> Date: Mon, 12 Feb 2024 20:09:39 +0900 Subject: [PATCH] add ci --- .github/workflows/build.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 60906b3..b2a9439 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,15 +19,17 @@ jobs: run: pip install --upgrade platformio - name: Build - run: - cd m5dial-simple-pointer; - cp src/ssid.h.template src/ssid.h; + run: | + cd m5dial-simple-pointer + cp src/ssid.h.template src/ssid.h pio run - name: rename - run: + if: startsWith(github.ref, 'refs/tags/m5dial-simple-pointer') + 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')