Skip to content

Commit 90bdcb0

Browse files
authored
Merge pull request #24 from berkus/zip-pipeline-artifacts
fix: 🐛 Zip up produced artifacts
2 parents bf6d91d + ac862fc commit 90bdcb0

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/outputs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ jobs:
2323
config: config.kibot.yaml
2424
# optional - prefix to output defined in config
2525
dir: output
26+
- name: Prepare release
27+
run: |
28+
mkdir -p zipped/
29+
zip -n zip -9 -o -D zipped/rusty-probe-pcb.zip output/*.csv output/*.html output/*.png output/*.pdf output/*.zip
2630
- name: Upload temporary artifacts for review
2731
uses: actions/upload-artifact@v4
2832
with:
29-
name: output
30-
path: output
33+
name: rusty-probe-pcb
34+
path: zipped/rusty-probe-pcb.zip

.github/workflows/prerelease.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
config: config.kibot.yaml
2929
# optional - prefix to output defined in config
3030
dir: output
31+
- name: Prepare release
32+
run: |
33+
mkdir -p zipped/
34+
zip -n zip -9 -o -D zipped/rusty-probe-pcb.zip output/*.csv output/*.html output/*.png output/*.pdf output/*.zip
3135
- name: Release with Notes
3236
uses: softprops/action-gh-release@v2
3337
with:
@@ -36,6 +40,6 @@ jobs:
3640
prerelease: true
3741
fail_on_unmatched_files: true
3842
files: |
39-
output/**
43+
zipped/rusty-probe-pcb.zip
4044
env:
4145
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
config: config.kibot.yaml
2929
# optional - prefix to output defined in config
3030
dir: output
31+
- name: Prepare release
32+
run: |
33+
mkdir -p zipped/
34+
zip -n zip -9 -o -D zipped/rusty-probe-pcb.zip output/*.csv output/*.html output/*.png output/*.pdf output/*.zip
3135
- name: Release with Notes
3236
uses: softprops/action-gh-release@v2
3337
with:
@@ -37,6 +41,6 @@ jobs:
3741
make_latest: true
3842
fail_on_unmatched_files: true
3943
files: |
40-
output/**
44+
zipped/rusty-probe-pcb.zip
4145
env:
4246
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)