Skip to content

Commit

Permalink
Edit kicad_outputs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jacho committed Sep 27, 2023
1 parent ad47407 commit f281c37
Showing 1 changed file with 31 additions and 23 deletions.
54 changes: 31 additions & 23 deletions .github/workflows/kicad_outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -304,8 +314,6 @@ jobs:
rm -r doc_report || true
rm -r doc_ibom || true

tree

git add . -f

- uses: stefanzweifel/[email protected]
Expand Down

0 comments on commit f281c37

Please sign in to comment.