Skip to content

Commit be50a33

Browse files
committed
build(zip.yml): simplify code and hopfully compress the root directory this time
1 parent 7ca8e8c commit be50a33

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/zip.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Collect Directory
1+
name: Build and Collect ZIP
22
on:
33
push:
44
pull_request:
@@ -18,20 +18,14 @@ jobs:
1818
run: npm ci
1919
- name: Build
2020
run: npm run build
21-
- name: Find Directory
22-
id: find_dir
21+
- name: Zip Directory
2322
run: |
24-
DIR="dist/01KSU_INST-KSU"
25-
if [ ! -d "$DIR" ]; then
26-
echo "Directory not found: $DIR"
27-
exit 1
28-
fi
29-
echo "directory=$DIR" >> "$GITHUB_OUTPUT"
30-
echo "Found Directory: $DIR"
31-
- name: Upload Directory Artifact
23+
zip -r build-zip.zip dist/01KSU_INST-KSU
24+
- name: Upload ZIP artifact
3225
uses: actions/upload-artifact@v4
3326
with:
3427
name: 01KSU_INST-KSU
35-
path: ${{ steps.find_dir.outputs.directory }}
28+
path: build-zip.zip
3629
if-no-files-found: error
30+
compression-level: 0
3731

0 commit comments

Comments
 (0)