- Replace mammoth.js .doc handler with JSDoc (Alpaq92/JSDoc submodule) - Fix RTF.js rendering via jQuery append instead of appendChild - Use import.meta.env.BASE_URL for asset paths to support /PreviewJS/ base - Add GitHub Actions: deploy.yml (push-triggered Pages deploy) and update-submodules.yml (monthly cron with release creation) - Add .gitignore, README.md with Credits, MIT LICENSE Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
49 lines
853 B
YAML
49 lines
853 B
YAML
name: Deploy to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: pages
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: npm
|
|
|
|
- run: npm ci
|
|
|
|
- run: npx vite build --base /PreviewJS/
|
|
|
|
- uses: actions/configure-pages@v5
|
|
|
|
- uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: dist
|
|
|
|
deploy:
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
- id: deployment
|
|
uses: actions/deploy-pages@v4
|