Skip to content
Merged
Show file tree
Hide file tree
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
39 changes: 33 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Deploy VitePress site to Pages
name: Deploy to GitHub Pages

on:
push:
branches: [master]
branches:
- master
workflow_dispatch:

permissions:
Expand All @@ -22,17 +23,43 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Setup Pages
uses: actions/configure-pages@v4
with:
enablement: true

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Build with VitePress
run: npm run docs:build
run: pnpm run docs:build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -48,4 +75,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
base: '/meta/',
title: "Hypercore One Meta",
description: "Hypercore One Records & Governance Documents",
title: "HyperCore One Meta",
description: "HyperCore One Records & Governance Documents",
rewrites: {
'README.md': 'index.md',
'(.*)/README.md': '(.*)/index.md'
Expand Down
Loading