trying to switch to caching instead of artifacts for pcb images

This commit is contained in:
Stephen Hawes
2023-06-10 19:43:35 -04:00
parent 8debc2fcf5
commit 64be488d0b

View File

@@ -120,6 +120,11 @@ jobs:
if-no-files-found: error if-no-files-found: error
retention-days: 60 retention-days: 60
- uses: actions/cache@v3
with:
path: pcb-images/ # Note that this path is not influenced by working-directory set in defaults, for example
key: 0042E1DE88
generate-bom: generate-bom:
name: Generate BOM name: Generate BOM
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@@ -191,7 +196,6 @@ jobs:
export DISPLAY=:5 export DISPLAY=:5
python3 .github/workflows/scripts/generate-stl-img.py ${{ github.event.release.tag_name }} python3 .github/workflows/scripts/generate-stl-img.py ${{ github.event.release.tag_name }}
- name: Generate STL Images for Workflow Dispatch - name: Generate STL Images for Workflow Dispatch
if: github.event_name != 'release' if: github.event_name != 'release'
run: | run: |
@@ -200,7 +204,6 @@ 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 - name: Make folder to Host PCB Images
run: | run: |
mkdir pcb-images mkdir pcb-images
@@ -208,12 +211,17 @@ jobs:
cd pcb-images cd pcb-images
ls -al ls -al
- name: Download PCB Images - uses: actions/cache@v3
if: github.event_name != 'release'
uses: actions/download-artifact@v2
with: with:
name: pcb-images path: pcb-images
path: pcb-images/ key: 0042E1DE88
# - 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 - name: Move PCB Images for Workflow Dispatch
if: github.event_name != 'release' if: github.event_name != 'release'