From 7f1ff10be0951d1c21bd67c1f92e80e3de0c00cb Mon Sep 17 00:00:00 2001 From: foorschtbar Date: Tue, 10 Oct 2023 22:21:57 +0200 Subject: [PATCH] Test webflasher upload --- .github/workflows/build-and-release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 2ca566c..8a2d1ad 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -113,6 +113,24 @@ jobs: file_glob: true prerelease: ${{ env.prerelease }} + - name: Prepare binaries for web flasher 🚀 + run: | + mkdir -p firmware + cp ./*/firmware_*.bin firmware/ + + - name: Upload binaries to PixelIt.Docs for web flasher 🚀 + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }} + with: + source-directory: "firmware" + destination-github-username: "pixelit-project" + destination-repository-name: "PixelIt.Docs" + user-email: bot@pixelit + target-branch: master + target-directory: "src/.vuepress/public/pixelit_flasher/" + commit-message: pushed from $GITHUB_REF via GitHub Actions + deploy-webui-gh-pages: runs-on: ubuntu-latest needs: build-webui