Skip to content

build(zip.yml): hopefully this will work #5

build(zip.yml): hopefully this will work

build(zip.yml): hopefully this will work #5

Workflow file for this run

name: Build and Collect ZIP
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Find ZIP file
id: find_zip
run: |
FILE=$(find dist -maxdepth 1 -type f -name "*.zip" | head -n 1)
if [ -z "$FILE" ]; then
echo "No .zip file found in dist/"
exit 1
fi
echo "zipfile=$FILE" >> "$GITHUB_OUTPUT"
echo "Found ZIP: $FILE"
- name: Upload ZIP artifact
uses: actions/upload-artifact@v4
with:
name: 01KSU_INST-KSU.zip # Changed artifact name to the zip file name
path: ${{ steps.find_zip.outputs.zipfile }}
if-no-files-found: error
compression-level: 0