Skip to content

Commit

Permalink
Update workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak authored and github-actions[bot] committed Jul 8, 2023
1 parent bfbd63d commit 7e8d068
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/kicad_outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,24 @@ jobs:
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
hw/sch_pcb/*.csv
doc_xml
# Zde se zahazuji debugovaci videa
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -283,21 +289,21 @@ jobs:
mkdir hw || true
mkdir hw/cam_profi || true
mkdir hw/cam_profi/gbr || true
mkdir hw/cam_profi/PnP || true
mkdir hw/cam_profi/assembly || 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
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/grb/PnP hw/cam_profi/PnP || true
mv hw/cam_profi/gbr/PnP/ hw/cam_profi/assembly || true

rm -r doc_img || true
rm -r doc_cad || true
Expand Down
2 changes: 1 addition & 1 deletion doc/assets

0 comments on commit 7e8d068

Please sign in to comment.