From b7a5aa8960d7b7f937d2de64652cf43f54540c71 Mon Sep 17 00:00:00 2001 From: Gabriel Koppenstein <82903393+gab-k@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:31:24 +0100 Subject: [PATCH] Update pcb_render.yml --- .github/workflows/pcb_render.yml | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pcb_render.yml b/.github/workflows/pcb_render.yml index e10de7e..f871481 100644 --- a/.github/workflows/pcb_render.yml +++ b/.github/workflows/pcb_render.yml @@ -83,29 +83,14 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - - name: Checkout the repository - uses: actions/checkout@v4 - - - name: Set up git - run: | - git config --global user.name "github-actions" - git config --global user.email "github-actions@github.com" - - - name: Checkout gh-pages-dev - run: | - git fetch --all # Ensure all branches are fetched - git checkout gh-pages-dev - - name: Download pcb-images artifact uses: actions/download-artifact@v4 with: name: pcb-images path: images/ - - - - name: Deploy to gh-pages-dev branch (dev) - run: | - cp -r images/* . # Copy the rendered images to the root directory - git add images/* - git commit -m "Deploy PCB images to gh-pages-dev" - git push origin gh-pages-dev + + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./images