From 0c225ee7f05faebbe335102a72242815019cbee5 Mon Sep 17 00:00:00 2001 From: Gabriel Koppenstein <82903393+gab-k@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:46:01 +0100 Subject: [PATCH] Update pcb_render.yml --- .github/workflows/pcb_render.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pcb_render.yml b/.github/workflows/pcb_render.yml index e445521..2a0097e 100644 --- a/.github/workflows/pcb_render.yml +++ b/.github/workflows/pcb_render.yml @@ -59,7 +59,8 @@ jobs: - name: Deploy to gh-pages branch (main) run: | - git checkout gh-pages + git fetch --all # Ensure all branches are fetched + git checkout gh-pages || git checkout --orphan gh-pages # Create gh-pages if it doesn't exist cp -r images/* . # Copy the rendered images to the root directory git add . git commit -m "Deploy PCB images to gh-pages" @@ -95,7 +96,8 @@ jobs: - name: Deploy to gh-pages-dev branch (dev) run: | - git checkout gh-pages-dev + git fetch --all # Ensure all branches are fetched + git checkout gh-pages-dev || git checkout --orphan gh-pages-dev # Create gh-pages-dev if it doesn't exist cp -r images/* . # Copy the rendered images to the root directory git add . git commit -m "Deploy PCB images to gh-pages-dev"