Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Merge branch 'main' of https://github.com/anaclumos/extracranial #24

Merge branch 'main' of https://github.com/anaclumos/extracranial

Merge branch 'main' of https://github.com/anaclumos/extracranial #24

Workflow file for this run

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: true
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v5
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- name: Resolve Pages artifact path
id: pages_artifact
run: |
if [ -d .output/public ]; then
echo "path=.output/public" >> "$GITHUB_OUTPUT"
elif [ -d dist/client ]; then
echo "path=dist/client" >> "$GITHUB_OUTPUT"
else
echo "No Pages artifact path found after build." >&2
echo "Checked: .output/public and dist/client" >&2
exit 1
fi
- name: Add .nojekyll
run: touch "${{ steps.pages_artifact.outputs.path }}/.nojekyll"
- name: Add CNAME
run: printf 'cho.sh\n' > "${{ steps.pages_artifact.outputs.path }}/CNAME"
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v4
with:
path: ${{ steps.pages_artifact.outputs.path }}
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