Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 4 additions & 23 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Deploy Website

# Deploy the Vue 3 frontend to GitHub Pages.
# Deploy the static documentation site to GitHub Pages.
# Triggered automatically on pushes to main, or manually via workflow_dispatch.
on:
push:
branches: [main]
paths:
- 'frontend/**'
- 'docs/website/**'
- '.github/workflows/deploy-website.yml'
workflow_dispatch:

Expand All @@ -22,39 +22,20 @@ concurrency:

jobs:
build:
name: Build Frontend
name: Build Website
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: frontend

- name: Build
run: npm run build
working-directory: frontend
env:
# Set the base URL for GitHub Pages: /repo-name/
# Override at the repo level via a repository variable if needed.
VITE_BASE_URL: ${{ vars.VITE_BASE_URL || '/' }}

- name: Configure Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: frontend/dist
path: docs/website

deploy:
name: Deploy to GitHub Pages
Expand Down