61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
name: Generate Interactive Pinouts
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
|
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
# Allow one concurrent deployment
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
generate:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Generate Pinouts
|
|
uses: chuckwagoncomputing/interactive-pinout@2.1
|
|
with:
|
|
mapping-path: ./Hardware/pinout/*.yaml
|
|
warnings: "false"
|
|
warning-dupe: "error"
|
|
columns: |
|
|
{
|
|
"pin":"Pin Number",
|
|
"type":"Type",
|
|
"function":"Typical Function"
|
|
}
|
|
print-columns: |
|
|
[
|
|
"function"
|
|
]
|
|
colors: |
|
|
{
|
|
"12v":"red",
|
|
"12hs":"red",
|
|
"5v":"yellow",
|
|
"in":"green",
|
|
"can":"blue",
|
|
"gnd":"black",
|
|
"out":"indigo",
|
|
}
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v3
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v1
|
|
with:
|
|
path: pinouts
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v1
|