From afeaa4ff49239cf5149448e3fda2f0ce4f96e6bf Mon Sep 17 00:00:00 2001 From: krolyxon Date: Mon, 8 Jun 2026 22:32:54 +0530 Subject: add web flasher --- .github/workflows/build-and-deploy.yml | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/build-and-deploy.yml (limited to '.github/workflows') diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml new file mode 100644 index 0000000..08eecef --- /dev/null +++ b/.github/workflows/build-and-deploy.yml @@ -0,0 +1,57 @@ +name: Build and Deploy Web Flasher + +on: + push: + branches: + - main + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install PlatformIO + run: | + pip install platformio + + - name: Build Firmware + run: | + pio run + + - name: Copy Firmware Files + run: | + mkdir -p deploy + + cp web-flasher/index.html deploy/ + cp web-flasher/manifest.json deploy/ + + cp .pio/build/*/firmware.bin deploy/ + cp .pio/build/*/bootloader.bin deploy/ + cp .pio/build/*/partitions.bin deploy/ + + - name: Upload Pages Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: deploy + + deploy: + needs: build + + runs-on: ubuntu-latest + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy + id: deployment + uses: actions/deploy-pages@v4 -- cgit v1.2.3