Skip to content

Commit

Permalink
Test webflasher upload
Browse files Browse the repository at this point in the history
  • Loading branch information
foorschtbar committed Oct 10, 2023
1 parent 36044d0 commit 34b1ba3
Showing 1 changed file with 38 additions and 20 deletions.
58 changes: 38 additions & 20 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,25 +113,43 @@ jobs:
file_glob: true
prerelease: ${{ env.prerelease }}

deploy-webui-gh-pages:
runs-on: ubuntu-latest
needs: build-webui
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
repository: "pixelit-project/WebUI"

- name: Download artifacts 💾
uses: actions/download-artifact@v3
with:
name: pixelit-webui
path: webui
- name: Prepare binaries for web flasher 🚀
run: |
mkdir -p firmware
cp ./*/firmware_*.bin firmware/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
- 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:
branch: gh-pages # The branch the action should deploy to.
folder: . # The folder the action should deploy.
clean: false # Automatically remove deleted files from the deploy branch
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
# if: startsWith(github.ref, 'refs/tags/')
# steps:
# - name: Checkout 🛎️
# uses: actions/checkout@v4
# with:
# repository: "pixelit-project/WebUI"

# - name: Download artifacts 💾
# uses: actions/download-artifact@v3
# with:
# name: pixelit-webui
# path: webui

# - name: Deploy 🚀
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# branch: gh-pages # The branch the action should deploy to.
# folder: . # The folder the action should deploy.
# clean: false # Automatically remove deleted files from the deploy branch

0 comments on commit 34b1ba3

Please sign in to comment.