From f281c37cfa227adaad6a3ebe71cff81a12eb1814 Mon Sep 17 00:00:00 2001 From: jacho Date: Wed, 27 Sep 2023 18:13:50 +0200 Subject: [PATCH] Edit kicad_outputs.yml --- .github/workflows/kicad_outputs.yml | 54 +++++++++++++++++------------ 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/.github/workflows/kicad_outputs.yml b/.github/workflows/kicad_outputs.yml index 4c1f104..a927fa0 100644 --- a/.github/workflows/kicad_outputs.yml +++ b/.github/workflows/kicad_outputs.yml @@ -33,7 +33,7 @@ jobs: token: ${{ secrets.pat }} ref: ${{ github.head_ref }} - - uses: INTI-CMNB/KiBot@v2_dk6 + - uses: INTI-CMNB/KiBot@v2_dk7 with: config: ${{ env.kibot }}/erc.kibot.yaml schema: ${{ env.schema }} @@ -51,7 +51,7 @@ jobs: token: ${{ secrets.pat }} ref: ${{ github.head_ref }} - - uses: INTI-CMNB/KiBot@v2_dk6 + - uses: INTI-CMNB/KiBot@v2_dk7 with: config: ${{ env.kibot }}/drc.kibot.yaml schema: ${{ env.schema }} @@ -69,7 +69,7 @@ jobs: token: ${{ secrets.pat }} ref: ${{ github.head_ref }} - - uses: INTI-CMNB/KiBot@v2_dk6 + - uses: INTI-CMNB/KiBot@v2_dk7 with: config: ${{ env.kibot }}/schematics.kibot.yaml schema: ${{ env.schema }} @@ -93,30 +93,38 @@ jobs: token: ${{ secrets.pat }} ref: ${{ github.head_ref }} - - uses: INTI-CMNB/KiBot@v2_dk6 + - uses: INTI-CMNB/KiBot@v2_dk7 with: config: ${{ env.kibot }}/placement.kibot.yaml schema: ${{ env.schema }} board: ${{ env.board }} dir: ${{ env.dir }}_docs - - uses: INTI-CMNB/KiBot@v2_dk6 + - uses: INTI-CMNB/KiBot@v2_dk7 with: config: ${{ env.kibot }}/xml.kibot.yaml schema: ${{ env.schema }} board: ${{ env.board }} dir: ${{ env.dir }}_docs - - name: "Rename output" +# - name: "Rename output" +# run: | +# for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done +# for file in $(find ${{env.dir}}_docs -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done + + - name: "Collect files" run: | - for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done - for file in $(find ${{env.dir}}_docs -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done + tree + mkdir doc_xml || true ; + mv hw/sch_pcb/*.xml doc_xml/ || true; + mv hw/out_docs/*.csv doc_xml/ || true; - uses: actions/upload-artifact@v3 if: ${{ success() }} with: name: doc_xml - path: hw/sch_pcb/*.xml + path: | + doc_xml # Zde se zahazuji debugovaci videa - uses: actions/upload-artifact@v3 @@ -138,7 +146,7 @@ jobs: token: ${{ secrets.pat }} ref: ${{ github.head_ref }} - - uses: INTI-CMNB/KiBot@v2_dk6 + - uses: INTI-CMNB/KiBot@v2_dk7 with: config: ${{ env.kibot }}/report.kibot.yaml schema: ${{ env.schema }} @@ -162,7 +170,7 @@ jobs: token: ${{ secrets.pat }} ref: ${{ github.head_ref }} - - uses: INTI-CMNB/KiBot@v2_dk6 + - uses: INTI-CMNB/KiBot@v2_dk7 with: config: ${{ env.kibot }}/ibom.kibot.yaml schema: ${{ env.schema }} @@ -191,7 +199,7 @@ jobs: token: ${{ secrets.pat }} ref: ${{ github.head_ref }} - - uses: INTI-CMNB/KiBot@v2_dk6 + - uses: INTI-CMNB/KiBot@v2_dk7 with: config: ${{ env.kibot }}/gerbers.kibot.yaml schema: ${{ env.schema }} @@ -220,14 +228,14 @@ jobs: token: ${{ secrets.pat }} ref: ${{ github.head_ref }} - - uses: INTI-CMNB/KiBot@v2_dk6 + - uses: INTI-CMNB/KiBot@v2_dk7 with: config: ${{ env.kibot }}/cad.kibot.yaml schema: ${{ env.schema }} board: ${{ env.board }} dir: ${{ env.dir }}_cad - - uses: INTI-CMNB/KiBot@v2_dk6 + - uses: INTI-CMNB/KiBot@v2_dk7 with: config: ${{ env.kibot }}/render.kibot.yaml schema: ${{ env.schema }} @@ -280,20 +288,22 @@ jobs: mkdir doc/img/render || true mkdir hw || true mkdir hw/cam_profi || true - mkdir hw/cam_profi/grb || true + mkdir hw/cam_profi/gbr || true + mkdir hw/cam_profi/assembly || true mkdir hw/cam_profi/ibom || true - - cp doc/assets/kibot/autogenerated.md hw/cam_profi.readme.md || true - + cp -r doc_img/* doc/gen/img || true cp -r doc_cad/cad/* doc/gen || true - cp -r hw_cam_profi/* hw/cam_profi/grb || true + cp -r hw_cam_profi/* hw/cam_profi/gbr || true cp -r doc_sch/docs/* doc/gen || true cp -r doc_xml/* hw/cam_profi || true cp -r doc_sch/img/pcb/* doc/gen/img || true - cp -r doc_placement/doc* hw/cam_profi || true + mv -r doc_placement/PnP/* hw/cam_profi/assembly || true + cp -r doc_placement/* hw/cam_profi/assembly || true cp -r doc_report/* doc/gen || true - cp -r doc_ibom/docs/* hw/cam_profi/ibom || true + cp -r doc_ibom/docs/* hw/cam_profi || true + + mv hw/cam_profi/gbr/PnP/ hw/cam_profi/assembly || true rm -r doc_img || true rm -r doc_cad || true @@ -304,8 +314,6 @@ jobs: rm -r doc_report || true rm -r doc_ibom || true - tree - git add . -f - uses: stefanzweifel/git-auto-commit-action@v4.16.0