Skip to content

Commit

Permalink
kicad automation
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaumann committed May 28, 2024
1 parent 142be0d commit d4429bb
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@ jobs:
run: npm install
- name: Generate unrouted PCBs
run: npm run gen
- name: render left pcb image
uses: linalinn/kicad-render@main
with:
pcb_file: output/pcbs/left.kicad_pcb
output_path: ${{ github.workspace }}/images
- name: render right pcb image
uses: linalinn/kicad-render@main
with:
pcb_file: output/pcbs/right.kicad_pcb
output_path: ${{ github.workspace }}/images
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v3

- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: "images"
- name: Export DSN
uses: ./.github/actions/export-dsn
with:
Expand All @@ -48,3 +67,20 @@ jobs:
with:
name: routed-pcbs-and-gerbers
path: output
deploy-pages:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: render-image

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit d4429bb

Please sign in to comment.