Update export-bom.yaml
changes order so img folder already exists
This commit is contained in:
63
.github/workflows/export-bom.yaml
vendored
63
.github/workflows/export-bom.yaml
vendored
@@ -146,37 +146,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python3 .github/workflows/scripts/export-bom.py ${SHORT_SHA}
|
python3 .github/workflows/scripts/export-bom.py ${SHORT_SHA}
|
||||||
|
|
||||||
- name: Make folder to Host PCB Images
|
|
||||||
run: |
|
|
||||||
mkdir pcb-images
|
|
||||||
ls -al
|
|
||||||
cd pcb-images
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
- name: Download PCB Images
|
|
||||||
if: github.event_name != 'release'
|
|
||||||
uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: pcb-images
|
|
||||||
path: pcb-images/
|
|
||||||
|
|
||||||
- name: Move PCB Images for Workflow Dispatch
|
|
||||||
if: github.event_name != 'release'
|
|
||||||
run: |
|
|
||||||
ls -al
|
|
||||||
ls -al pcb-images
|
|
||||||
mv pcb-images/*.png Feeder-${SHORT_SHA}/img/
|
|
||||||
ls -al Feeder-${SHORT_SHA}/img/
|
|
||||||
|
|
||||||
- name: Move PCB Images for Release
|
|
||||||
if: github.event_name == 'release'
|
|
||||||
run: |
|
|
||||||
ls -al
|
|
||||||
ls -al pcb-images
|
|
||||||
mv pcb-images/* Feeder-${{ github.event.release.tag_name }}/img/
|
|
||||||
ls -al Feeder-${{ github.event.release.tag_name }}/img/
|
|
||||||
|
|
||||||
|
|
||||||
- name: Install FreeCAD Python library
|
- name: Install FreeCAD Python library
|
||||||
run: |
|
run: |
|
||||||
sudo apt -qq update
|
sudo apt -qq update
|
||||||
@@ -231,6 +200,38 @@ jobs:
|
|||||||
export DISPLAY=:5
|
export DISPLAY=:5
|
||||||
python3 .github/workflows/scripts/generate-stl-img.py ${SHORT_SHA}
|
python3 .github/workflows/scripts/generate-stl-img.py ${SHORT_SHA}
|
||||||
|
|
||||||
|
|
||||||
|
- name: Make folder to Host PCB Images
|
||||||
|
run: |
|
||||||
|
mkdir pcb-images
|
||||||
|
ls -al
|
||||||
|
cd pcb-images
|
||||||
|
ls -al
|
||||||
|
|
||||||
|
- name: Download PCB Images
|
||||||
|
if: github.event_name != 'release'
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: pcb-images
|
||||||
|
path: pcb-images/
|
||||||
|
|
||||||
|
- name: Move PCB Images for Workflow Dispatch
|
||||||
|
if: github.event_name != 'release'
|
||||||
|
run: |
|
||||||
|
ls -al
|
||||||
|
ls -al pcb-images
|
||||||
|
mv pcb-images/*.png Feeder-${SHORT_SHA}/img/
|
||||||
|
ls -al Feeder-${SHORT_SHA}/img/
|
||||||
|
|
||||||
|
- name: Move PCB Images for Release
|
||||||
|
if: github.event_name == 'release'
|
||||||
|
run: |
|
||||||
|
ls -al
|
||||||
|
ls -al pcb-images
|
||||||
|
mv pcb-images/* Feeder-${{ github.event.release.tag_name }}/img/
|
||||||
|
ls -al Feeder-${{ github.event.release.tag_name }}/img/
|
||||||
|
|
||||||
|
|
||||||
- name: Zip BOM Directory for Workflow Dispatch
|
- name: Zip BOM Directory for Workflow Dispatch
|
||||||
if: github.event_name != 'release'
|
if: github.event_name != 'release'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user