Skip to content

Update paper page count to 24 pages (from 13) #23

Update paper page count to 24 pages (from 13)

Update paper page count to 24 pages (from 13) #23

Workflow file for this run

name: Build and Deploy GitHub Pages
on:
push:
branches:
- main
- master
workflow_dispatch:
pull_request:
branches:
- main
- master
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
cache-version: 1
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Install Ruby dependencies
run: bundle install
- name: Compile TypeScript
run: npx tsc
continue-on-error: false
- name: Verify TypeScript compilation
run: |
echo "πŸ” Verifying TypeScript compilation..."
if [ ! -f "assets/js/main.js" ]; then
echo "❌ TypeScript compilation failed - main.js not found"
exit 1
fi
if [ ! -f "assets/js/canvas-effects.js" ]; then
echo "❌ TypeScript compilation failed - canvas-effects.js not found"
exit 1
fi
echo "βœ… TypeScript compiled successfully"
echo "πŸ“¦ Compiled files:"
ls -lh assets/js/*.js | awk '{print " - " $9 " (" $5 ")"}'
- name: Build Jekyll site
run: bundle exec jekyll build
env:
JEKYLL_ENV: production
- name: Verify Jekyll build
run: |
if [ ! -d "_site" ]; then
echo "❌ Jekyll build failed - _site directory not found"
exit 1
fi
echo "βœ… Jekyll build successful"
echo "πŸ“¦ Site size: $(du -sh _site | cut -f1)"
- name: Check for common issues
run: |
echo "πŸ” Checking for common issues..."
if [ ! -f "_site/index.html" ]; then
echo "⚠️ Warning: index.html not found in _site"
else
echo "βœ… index.html found"
fi
if [ ! -f "_site/assets/js/main.js" ]; then
echo "⚠️ Warning: main.js not found - TypeScript may not have compiled"
else
echo "βœ… main.js found"
fi
if [ ! -f "_site/assets/js/canvas-effects.js" ]; then
echo "⚠️ Warning: canvas-effects.js not found - Canvas effects may not work"
else
echo "βœ… canvas-effects.js found"
fi
echo "πŸ“„ Files in _site: $(find _site -type f | wc -l)"
- name: Setup Pages
uses: actions/configure-pages@v4
with:
enablement: true
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./_site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Deployment status
run: |
echo "πŸš€ Deployment successful!"
echo "πŸ“„ Site URL: ${{ steps.deployment.outputs.page_url }}"