From 50051637f3504176de63461182ef83a0e47f7a6b Mon Sep 17 00:00:00 2001 From: Michael Jonathan Lee Date: Fri, 20 Dec 2024 17:35:50 +0000 Subject: [PATCH] upload binaries to github page --- .github/workflows/build-docs.yml | 7 +++++++ .github/workflows/build_firmware.yml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index dca3bbd3..d5c63c8a 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -18,6 +18,13 @@ jobs: - name: build docs run: docker run -v $PWD:/code tbd_docs + - name: fetch builds + uses: actions/download-artifact@v4 + with: + path: /build/docs/html/downloads + pattern: tbd_firmware_* + merge-multiple: true + - name: upload static web content id: deployment uses: actions/upload-pages-artifact@v3 diff --git a/.github/workflows/build_firmware.yml b/.github/workflows/build_firmware.yml index 9cdb5028..18bbb304 100644 --- a/.github/workflows/build_firmware.yml +++ b/.github/workflows/build_firmware.yml @@ -20,12 +20,12 @@ jobs: run: ls -1 tools/docker/build.Dockerfile && docker build -t tbd_firmware -f tools/docker/build.Dockerfile $PWD - name: build firmware - run: docker run -v $PWD:/code tbd_firmware ${{ inputs.tbd-platform }} configure build + run: docker run -v $PWD:/code tbd_firmware ${{ inputs.tbd-platform }} configure bin - name: upload firmware uses: actions/upload-artifact@v4 with: name: tbd_firmware_${{ inputs.tbd-platform }} path: | - build/${{ inputs.tbd-platform }}/ctag-tbd.elf + build/${{ inputs.tbd-platform }}/tbd-${{ inputs.tbd-platform }}-flash.bin overwrite: true