Skip to content

Commit

Permalink
also render rotating PCB
Browse files Browse the repository at this point in the history
  • Loading branch information
H3wastooshort committed May 23, 2024
1 parent 427a353 commit 9659c2b
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/kicad_hardware_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,31 @@ jobs:
name: pcb_renders
path: pcb_renders

DocPCB_GIF:
name: PCB renders for Documentation
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: render pcb GIF
uses: linalinn/kicad-render@main
with:
pcb_file: hardware/the_extender.kicad_pcb
output_path: ${{ github.workspace }}/pcb_renders
animation: gif

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: pcb_gif
path: pcb_gif

deploy-pages:
name: Deploy everything to GitHub Pages
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: [DocPCB, DocSch] # FabBOM FabPCB
needs: [DocPCB, DocSch, DocPCB_GIF] # FabBOM FabPCB

permissions:
pages: write
Expand All @@ -82,6 +100,11 @@ jobs:
with:
name: pcb_renders

- name: Download PCB GIF
uses: actions/download-artifact@v4
with:
name: pcb_gif

- name: Upload GitHub Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
Expand Down

0 comments on commit 9659c2b

Please sign in to comment.