Skip to content

Commit

Permalink
Update workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklik authored and github-actions[bot] committed Sep 11, 2023
1 parent c0151ca commit 33f0b50
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/kicad_outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,24 +107,18 @@ jobs:
board: ${{ env.board }}
dir: ${{ env.dir }}_docs

# - 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"
- name: "Rename output"
run: |
tree
mkdir doc_xml || true ;
mv hw/sch_pcb/*.xml doc_xml/ || true;
mv hw/out_docs/*.csv doc_xml/ || true;
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
- uses: actions/upload-artifact@v3
if: ${{ success() }}
with:
name: doc_xml
path: |
doc_xml
hw/sch_pcb/*.xml
hw/sch_pcb/*.csv
# Zde se zahazuji debugovaci videa
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -289,21 +283,21 @@ jobs:
mkdir hw || true
mkdir hw/cam_profi || true
mkdir hw/cam_profi/gbr || true
mkdir hw/cam_profi/assembly || true
mkdir hw/cam_profi/PnP || true
mkdir hw/cam_profi/ibom || true

cp -r doc_img/* doc/gen/img || true
cp -r doc_cad/cad/* doc/gen || true
mv -r hw_cam_profi/PnP hw/cam_profi/PnP || 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
mv -r doc_placement/PnP/* hw/cam_profi/assembly || true
cp -r doc_placement/* hw/cam_profi/assembly || true
cp -r doc_placement/doc* hw/cam_profi || true
cp -r doc_report/* doc/gen || true
cp -r doc_ibom/docs/* hw/cam_profi || true
cp -r doc_ibom/docs/* hw/cam_profi/ibom || true

mv hw/cam_profi/gbr/PnP/ hw/cam_profi/assembly || true
mv hw/cam_profi/grb/PnP hw/cam_profi/PnP || true

rm -r doc_img || true
rm -r doc_cad || true
Expand Down

0 comments on commit 33f0b50

Please sign in to comment.