fix master branch name in github workflow #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: PCB | |
# build for each push and pull request | |
on: [push, pull_request] | |
jobs: | |
fabrication: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: | | |
sudo add-apt-repository --yes ppa:kicad/kicad-7.0-releases | |
sudo apt update | |
sudo apt install -y --install-recommends kicad | |
sudo apt-get install -y zip | |
- name: Generate fabrication files | |
run: | | |
./hardware/generate_fab.sh | |
- name: Upload board files | |
uses: actions/[email protected] | |
with: | |
name: dispensy-pcb | |
path: hardware/fabrication | |
- name: Upload release files | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: hardware/fab.zip |