Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

ci: deploy VitePress docs to GitHub Pages

rpone61ea3e7ad352
diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml
new file mode 100644
index 00000000..0afa9e2f
--- /dev/null
+++ b/.github/workflows/deploy-pages.yml
@@ -0,0 +1,60 @@
+name: Deploy documentation 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
+ env:
+ VITEPRESS_BASE: /
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Set up pnpm
+ uses: pnpm/action-setup@v4
+ with:
+ version: 9.15.9
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: pnpm
+
+ - name: Configure Pages
+ uses: actions/configure-pages@v5
+
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+
+ - name: Build documentation
+ run: pnpm docs:build
+
+ - name: Upload Pages artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ path: docs/.vitepress/dist
+
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ needs: build
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index cf4d7b38..9fab9aa9 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -211,7 +211,9 @@ const zhTheme = {
};
export default defineConfig({
- base: "/docs/",
+ // Keep the server deployment at /docs/ while allowing the custom-domain
+ // GitHub Pages workflow to publish the same site at the domain root.
+ base: process.env.VITEPRESS_BASE || "/docs/",
lang: "en-US",
title: "Narratage",
description: "Write the story. Compile the video.",
diff --git a/docs/public/CNAME b/docs/public/CNAME
new file mode 100644
index 00000000..1028ec02
--- /dev/null
+++ b/docs/public/CNAME
@@ -0,0 +1 @@
+narratage.hypit.ai