diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 4be6547..fefdc6e 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -47,6 +47,10 @@ jobs: SITE_URL: https://tiennm99.github.io SITE_BASE: /ai-coding-workflow-labs/gstack + - name: Build cc4e-course quiz + run: npm ci && npm run build + working-directory: cc4e-course/quiz-project + - name: Assemble site run: | set -euo pipefail @@ -58,6 +62,9 @@ jobs: cp -r gstack/dist _site/gstack mkdir -p _site/oh-my-claudecode cp -r oh-my-claudecode/index.html oh-my-claudecode/src oh-my-claudecode/styles _site/oh-my-claudecode/ + cp -r cc4e-course/quiz-project/out _site/cc4e-course + mkdir -p _site/advanced-claude-workflows + cp advanced-claude-workflows/thumbnail.html _site/advanced-claude-workflows/index.html - uses: actions/upload-pages-artifact@v3 with: diff --git a/README.md b/README.md index 10a78cf..6b0905d 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ together at **[tiennm99.github.io/ai-coding-workflow-labs](https://tiennm99.gith | [`bmad/`](./bmad/) | BMAD method (Vite/JS) | [/bmad/](https://tiennm99.github.io/ai-coding-workflow-labs/bmad/) | | [`oh-my-claudecode/`](./oh-my-claudecode/) | oh-my-claudecode (static) | [/oh-my-claudecode/](https://tiennm99.github.io/ai-coding-workflow-labs/oh-my-claudecode/) | | [`gstack/`](./gstack/) | gstack starter (Astro/Bun) | [/gstack/](https://tiennm99.github.io/ai-coding-workflow-labs/gstack/) | -| [`cc4e-course/`](./cc4e-course/) | Claude Code for Everyone course work | [Vercel](https://cc4e-course-lilac.vercel.app) | -| [`advanced-claude-workflows/`](./advanced-claude-workflows/) | Hooks/aliases notes | — | +| [`cc4e-course/`](./cc4e-course/) | Claude Code for Everyone course work | [/cc4e-course/](https://tiennm99.github.io/ai-coding-workflow-labs/cc4e-course/) | +| [`advanced-claude-workflows/`](./advanced-claude-workflows/) | Hooks/aliases notes | [/advanced-claude-workflows/](https://tiennm99.github.io/ai-coding-workflow-labs/advanced-claude-workflows/) | The `Deploy to GitHub Pages` workflow builds every app with its base path under this repo and publishes them as one site with a root index. diff --git a/cc4e-course/quiz-project/next-env.d.ts b/cc4e-course/quiz-project/next-env.d.ts index c4b7818..9edff1c 100644 --- a/cc4e-course/quiz-project/next-env.d.ts +++ b/cc4e-course/quiz-project/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/dev/types/routes.d.ts"; +import "./.next/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/cc4e-course/quiz-project/next.config.ts b/cc4e-course/quiz-project/next.config.ts index e9ffa30..095d225 100644 --- a/cc4e-course/quiz-project/next.config.ts +++ b/cc4e-course/quiz-project/next.config.ts @@ -1,7 +1,10 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ + // Static export so the quiz can be served from GitHub Pages + // under /ai-coding-workflow-labs/cc4e-course/. + output: "export", + basePath: "/ai-coding-workflow-labs/cc4e-course", }; export default nextConfig; diff --git a/index.html b/index.html index c84b023..8310ea6 100644 --- a/index.html +++ b/index.html @@ -22,10 +22,8 @@
  • bmad — trying the BMAD method
  • oh-my-claudecode — trying oh-my-claudecode
  • gstack — trying the gstack starter
  • +
  • cc4e-course — quiz project from the Claude Code for Everyone course
  • +
  • advanced-claude-workflows — interactive lesson thumbnail
  • -

    Not deployed here: - cc4e-course (hosted on Vercel) and - advanced-claude-workflows (notes only). -