Update pcb_render.yml
This commit is contained in:
1 parent
f8fcd77449
commit
0c225ee7f0
1 file changed
+4
-2
@@ -59,7 +59,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to gh-pages branch (main)
|
- name: Deploy to gh-pages branch (main)
|
||||||
run: |
|
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
|
cp -r images/* . # Copy the rendered images to the root directory
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Deploy PCB images to gh-pages"
|
git commit -m "Deploy PCB images to gh-pages"
|
||||||
@@ -95,7 +96,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to gh-pages-dev branch (dev)
|
- name: Deploy to gh-pages-dev branch (dev)
|
||||||
run: |
|
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
|
cp -r images/* . # Copy the rendered images to the root directory
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Deploy PCB images to gh-pages-dev"
|
git commit -m "Deploy PCB images to gh-pages-dev"
|
||||||
|
|||||||
Reference in new issue
Block a user