diff --git a/.github/workflows/build_firmware.yml b/.github/workflows/build_firmware.yml new file mode 100644 index 0000000..3c3676e --- /dev/null +++ b/.github/workflows/build_firmware.yml @@ -0,0 +1,40 @@ +name: Build Firmware + +on: + release: + types: [published] + push: + branches: + - master + +# schedule: +# - cron: 0 8 * * 5 +# watch: +# types: [started] + +jobs: + build: + runs-on: ubuntu-18.04 + + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Set up Python + uses: actions/setup-python@v1 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install platformio + + - name: Run PlatformIO + run: | + cd /home/runner/work/esp_dc1/esp_dc1 + platformio run + + - name : Upload artifact + uses: actions/upload-artifact@master + with: + name: firmware + path: /home/runner/work/esp_dc1/esp_dc1/.pio/build/dc1/firmware.bin