Update readme.md #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Board | |
on: [ push, pull_request ] | |
jobs: | |
create-board: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# MY_REPO_PAT is about accessing private submodules | |
# todo: how do we use same script both with and without MY_REPO_PAT? would two conditional versions of 'uses: actions/checkout@v2' be needed? | |
# https://stackoverflow.com/questions/72781712/how-to-add-private-git-repo-as-a-submodule-in-another-git-repo: | |
# token: ${{ secrets.MY_REPO_PAT }} | |
submodules: recursive | |
- name: Install kicad | |
run: | | |
sudo add-apt-repository --yes ppa:kicad/kicad-7.0-releases | |
sudo apt-get install kicad | |
pip install kicad-netlist-reader | |
- name: Generate Gerber Files | |
working-directory: breakout-boards/Breakout_154pin_284617-1-Connector | |
run: | | |
bash ../../ext/hellen-one/kicad/bin/export.sh | |
- name: Commit fresh board files | |
working-directory: breakout-boards/Breakout_154pin_284617-1-Connector | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
run: | | |
bash ../../ext/hellen-one/bin/gha-commit.sh | |
- name: Push board files | |
# let's support both newer 'main' and older 'master' repositories | |
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && env.NOCOMMIT != 'true'}} | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ github.token }} | |
branch: ${{ steps.extract_branch.outputs.branch }} |