-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-gh-pages.sh
More file actions
executable file
·29 lines (24 loc) · 1 KB
/
deploy-gh-pages.sh
File metadata and controls
executable file
·29 lines (24 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# GitHub Pages Deployment Script for StatusBox Demo (WebAssembly)
# This script builds the production WasmJS bundle and copies it to docs/ for GitHub Pages
set -e
echo "🚀 Building production WebAssembly bundle..."
./gradlew :composeApp:wasmJsBrowserProductionWebpack
echo "📦 Copying files to docs/..."
mkdir -p docs
cp composeApp/build/kotlin-webpack/wasmJs/productionExecutable/* docs/
cp -r composeApp/build/processedResources/wasmJs/main/composeResources docs/
echo "✅ Build complete!"
echo ""
echo "📋 Next steps:"
echo "1. Commit the docs/ directory to your repository"
echo "2. Push to GitHub"
echo "3. Enable GitHub Pages in repository settings:"
echo " - Go to Settings > Pages"
echo " - Source: Deploy from a branch"
echo " - Branch: master (or main)"
echo " - Folder: /docs"
echo "4. Your demo will be available at: https://YOUR_USERNAME.github.io/YOUR_REPO/"
echo ""
echo "📊 File sizes:"
ls -lh docs/composeApp.js docs/*.wasm 2>/dev/null || echo "Build files ready in docs/"