From bfa5020bf4ce4d3ffea819a32709eb1464d335c7 Mon Sep 17 00:00:00 2001 From: duchenpaul Date: Sat, 22 Aug 2020 18:10:12 +0800 Subject: [PATCH] Create build_firmware.yml --- .github/workflows/build_firmware.yml | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build_firmware.yml 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