Skip to content

Refactor documentation to replace WBDL with WBOL across multiple chap… #90

Refactor documentation to replace WBDL with WBOL across multiple chap…

Refactor documentation to replace WBDL with WBOL across multiple chap… #90

Workflow file for this run

# .github/workflows/deploy.yml
name: Deploy LaTeX document to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install LaTeX packages
run: |
sudo apt-get update
sudo apt-get install -y texlive-latex-recommended texlive-latex-extra texlive-bibtex-extra
- name: Build LaTeX document (simplified)
run: |
chmod +x build.sh
# Create build directory
mkdir -p build deploy
# Simple build without complex dependencies
pdflatex -output-directory=build -interaction=nonstopmode main.tex || true
pdflatex -output-directory=build -interaction=nonstopmode main.tex || true
# Copy results
if [ -f "build/main.pdf" ]; then
cp "build/main.pdf" "SpinTheWeb.pdf"
cp "index.html" "deploy/"
cp "SpinTheWeb.pdf" "deploy/"
if [ -d "figures" ]; then
cp -r "figures" "deploy/"
fi
echo "Build successful"
else
echo "Build failed, creating minimal deployment"
echo "<h1>LaTeX Build in Progress</h1><p>Please check back later.</p>" > "deploy/index.html"
fi
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: deploy
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4