: Stores the game's static assets (HTML, JavaScript, CSS, and game-specific folders like /assets ).
pages: stage: deploy script: # No build step needed – it's already static HTML/JS/SWF - echo "Deploying Unblocked Games S3..." - mkdir -p public # Copy all game assets to the public folder - cp -R * public/ 2>/dev/null || true # Ensure index.html is at the root - if [ -f "public/index.html" ]; then echo "Index found"; else echo "Missing index.html" && exit 1; fi artifacts: paths: - public only: - main - master
const s3 = new AWS.S3();
: Stores the game's static assets (HTML, JavaScript, CSS, and game-specific folders like /assets ).
pages: stage: deploy script: # No build step needed – it's already static HTML/JS/SWF - echo "Deploying Unblocked Games S3..." - mkdir -p public # Copy all game assets to the public folder - cp -R * public/ 2>/dev/null || true # Ensure index.html is at the root - if [ -f "public/index.html" ]; then echo "Index found"; else echo "Missing index.html" && exit 1; fi artifacts: paths: - public only: - main - master
const s3 = new AWS.S3();