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')