Skip to content

Commit

Permalink
Merge pull request #5 from linalinn/master
Browse files Browse the repository at this point in the history
Add workflow for automaticly rendering Images
  • Loading branch information
CRImier authored Apr 10, 2024
2 parents 9265c78 + 7208618 commit aeab014
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: render pcb images
on:
push:
jobs:
render_pcb_images:
name: render pcb images
runs-on: ubuntu-latest
container:
image: ghcr.io/linalinn/kicad-render:nightly
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Render images
run: find ${GITHUB_WORKSPACE} -name "*.kicad_pcb" | grep -v "Third-party" | grep -v "Panels/" | grep -v "_panel" | grep -v "panel.kicad_pcb" | xargs -I {} bash -c "bash render-pcb.sh -f \"{}\""

- name: Setup Pages
if: github.ref == 'refs/heads/master'
uses: actions/configure-pages@v3

- name: Upload Artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-pages-artifact@v1
with:
path: "${{ github.workspace }}"

deploy-pages:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: render_pcb_images

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
5 changes: 5 additions & 0 deletions Laptop mods/framework_input_controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ giving advice on its integration
pinout mismatch issue, checking the EC code when something wasn't clear to me,
and helping out with the firmware

## Images

![top](https://crimier.github.io/MyKiCad/Laptop%20mods/framework_input_controller/framework_input_brkt_top.png)
![bottom](https://crimier.github.io/MyKiCad/Laptop%20mods/framework_input_controller/framework_input_brkt_bottom.png)

## Changes made in v2:

- fixed GND fill between three adjacent GND pins (15-17) of the Input Cover controller
Expand Down

0 comments on commit aeab014

Please sign in to comment.