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
51 changes: 51 additions & 0 deletions .github/workflows/a-b-build-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build Docusaurus Site (Manual)

on:
workflow_dispatch:
inputs:
target:
description: "Build target (affects baseUrl config)"
required: true
default: "dreamhost"
type: choice
options:
- dreamhost
- gh

permissions:
contents: read

jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20
cache: npm
cache-dependency-path: website/package-lock.json

- name: Install dependencies
run: |
cd website
npm ci

- name: Build Docusaurus site
env:
DEPLOY_TARGET: ${{ inputs.target }}
run: |
cd website
npm run build

- name: Upload build artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: docusaurus-build
path: website/build
# JMH -- TBD:
# retention-days: 7
Loading