Skip to content

Commit

Permalink
Merge pull request #24 from berkus/zip-pipeline-artifacts
Browse files Browse the repository at this point in the history
fix: 🐛 Zip up produced artifacts
  • Loading branch information
korken89 authored Dec 7, 2024
2 parents bf6d91d + ac862fc commit 90bdcb0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ jobs:
config: config.kibot.yaml
# optional - prefix to output defined in config
dir: output
- name: Prepare release
run: |
mkdir -p zipped/
zip -n zip -9 -o -D zipped/rusty-probe-pcb.zip output/*.csv output/*.html output/*.png output/*.pdf output/*.zip
- name: Upload temporary artifacts for review
uses: actions/upload-artifact@v4
with:
name: output
path: output
name: rusty-probe-pcb
path: zipped/rusty-probe-pcb.zip
6 changes: 5 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
config: config.kibot.yaml
# optional - prefix to output defined in config
dir: output
- name: Prepare release
run: |
mkdir -p zipped/
zip -n zip -9 -o -D zipped/rusty-probe-pcb.zip output/*.csv output/*.html output/*.png output/*.pdf output/*.zip
- name: Release with Notes
uses: softprops/action-gh-release@v2
with:
Expand All @@ -36,6 +40,6 @@ jobs:
prerelease: true
fail_on_unmatched_files: true
files: |
output/**
zipped/rusty-probe-pcb.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
config: config.kibot.yaml
# optional - prefix to output defined in config
dir: output
- name: Prepare release
run: |
mkdir -p zipped/
zip -n zip -9 -o -D zipped/rusty-probe-pcb.zip output/*.csv output/*.html output/*.png output/*.pdf output/*.zip
- name: Release with Notes
uses: softprops/action-gh-release@v2
with:
Expand All @@ -37,6 +41,6 @@ jobs:
make_latest: true
fail_on_unmatched_files: true
files: |
output/**
zipped/rusty-probe-pcb.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 90bdcb0

Please sign in to comment.