diff --git a/.github/workflows/ayab-esp32-design.yml b/.github/workflows/ayab-esp32-design.yml index a98830b..a9dfb09 100644 --- a/.github/workflows/ayab-esp32-design.yml +++ b/.github/workflows/ayab-esp32-design.yml @@ -36,12 +36,6 @@ jobs: kicad-cli sch erc -o ${workflow_project_dir}/outputs/erc_errors.json --format json --severity-error --exit-code-violations ${workflow_project_dir}/${kicad_project_name}.kicad_sch kicad-cli pcb drc -o ${workflow_project_dir}/outputs/drc_errors.json --format json --severity-error --exit-code-violations ${workflow_project_dir}/${kicad_project_name}.kicad_pcb - - name: Export design file PDFs - run: | - kicad-cli sch export pdf -o ${workflow_project_dir}/outputs/${kicad_project_name}-sch.pdf ${workflow_project_dir}/${kicad_project_name}.kicad_sch - kicad-cli pcb export pdf -o ${workflow_project_dir}/outputs/${kicad_project_name}-pcb-front.pdf -l "F.Cu,F.Mask,F.Silkscreen" ${workflow_project_dir}/${kicad_project_name}.kicad_pcb - kicad-cli pcb export pdf -o ${workflow_project_dir}/outputs/${kicad_project_name}-pcb-back.pdf --erd --ev --mirror -l "B.Cu,B.Mask,B.Silkscreen" ${workflow_project_dir}/${kicad_project_name}.kicad_pcb - - name: Archive artifacts uses: actions/upload-artifact@v4 if: always() diff --git a/.github/workflows/ayab-esp32-documentation.yml b/.github/workflows/ayab-esp32-documentation.yml index bf0ee8c..e6f5007 100644 --- a/.github/workflows/ayab-esp32-documentation.yml +++ b/.github/workflows/ayab-esp32-documentation.yml @@ -61,10 +61,11 @@ jobs: run: | git config --global user.email "robot@ayab-knitting.com" git config --global user.name "AYAB Github Action" - git switch -c documentation - git add ${workflow_project_dir}/pdf/* + git fetch + git checkout documentation + git add ${workflow_project_dir}/pdf/*.pdf git commit -m "Add design file PDFs to repo [skip ci]" - gh pr create --title "Add design file PDFs to repo" --body "Automated PR from GHA" + gh pr create --head documentation --base main --title "Add design file PDFs to repo" --body "Automated PR from GHA" - name: Archive artifacts uses: actions/upload-artifact@v4