From 46c85a6bb65e6e5a4766f4b402730c88cd057e40 Mon Sep 17 00:00:00 2001 From: avi Date: Sat, 16 Dec 2023 23:16:25 -0800 Subject: [PATCH] separate build/release actions so build tests are run on branches for all build targets before deploying to main --- .github/workflows/make_binaries.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/make_binaries.yaml b/.github/workflows/make_binaries.yaml index 9072376..eddac3b 100644 --- a/.github/workflows/make_binaries.yaml +++ b/.github/workflows/make_binaries.yaml @@ -2,8 +2,6 @@ name: PlatformIO CI on: push: - branches: - - main jobs: build: @@ -29,6 +27,13 @@ jobs: - name: Build PlatformIO Project run: pio run + + deploy_release: + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + needs: build + steps: + - name: Copy binaries to /firmware run: bash copy_firmware.sh