Skip to content

Commit

Permalink
Port over code from kicad-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymclean committed Oct 5, 2024
1 parent 88f0e56 commit e42ee69
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,19 @@ jobs:
id: render_template
uses: chuhlomin/render-template@v1
with:
template: action.template.yml
template: templates/action.template.yml
result_path: action.yml
vars: |
image: docker://ghcr.io/${{ env.REPOSITORY_LC }}:${{ needs.version.outputs.version }}
- name: Update README.md
uses: recih/[email protected]
env:
ACTION_REPO: ${{ github.repository }}
ACTION_VERSION: ${{ needs.version.outputs.version }}
with:
template-file: templates/README.template.md
output-file: README.md
engine: mustache
- uses: stefanzweifel/git-auto-commit-action@v5
id: auto-commit
release-main:
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
id: render_template
uses: chuhlomin/render-template@v1
with:
template: action.template.yml
template: templates/action.template.yml
result_path: action.yml
vars: |
image: Dockerfile
Expand All @@ -32,4 +32,20 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: test-gerber
path: out/
path: out/
test-readme-generation:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Update README.md
uses: recih/[email protected]
env:
ACTION_REPO: ${{ github.repository }}
ACTION_VERSION: v1.0.0
with:
template-file: templates/README.template.md
output-file: README.md
engine: mustache
- name: Cat
run: cat README.md
24 changes: 24 additions & 0 deletions templates/README.template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# kicad-gerber Action

Generates gerber & drill files for a specified PCB and places them in a specified directory

## Inputs

### `input-file`

**Required** The PCB to process

### `output-directory`

The directory in which to place the gerber & drill files. Default "gerber".

### `position-format`

The position format to use. Options are gerber, csv, ascii, and none. Default "none".

## Example usage
```
uses: {{{ ACTION_REPO }}}@{{{ ACTION_VERSION }}}
with:
input-file: pcb.kicad_pcb
```
File renamed without changes.

0 comments on commit e42ee69

Please sign in to comment.