Update pcb_render.yml
This commit is contained in:
1 parent
5c3525c82e
commit
b7a5aa8960
1 file changed
+6
-21
@@ -83,29 +83,14 @@ jobs:
|
|||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
steps:
|
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
|
- name: Download pcb-images artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pcb-images
|
name: pcb-images
|
||||||
path: images/
|
path: images/
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
- name: Deploy to gh-pages-dev branch (dev)
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
run: |
|
with:
|
||||||
cp -r images/* . # Copy the rendered images to the root directory
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
git add images/*
|
publish_dir: ./images
|
||||||
git commit -m "Deploy PCB images to gh-pages-dev"
|
|
||||||
git push origin gh-pages-dev
|
|
||||||
Reference in new issue
Block a user