mirror of
https://github.com/tiennm99/ai-coding-workflow-labs.git
synced 2026-09-16 18:21:41 +00:00
gstack moved to npm on 2026-08-17 and ships package-lock.json with no bun.lock, but the Pages workflow still installed bun and ran "bun install --frozen-lockfile". Builds stayed green only because bun falls back to consuming package-lock.json, so the mismatch never surfaced. Its six sibling subprojects already use npm ci. Verified locally: npm ci && npm run build produces the same 4 pages plus the sitemap.
85 lines
2.3 KiB
YAML
85 lines
2.3 KiB
YAML
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
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: '24'
|
|
|
|
- name: Build claudekit
|
|
run: npm ci && npm test && npm run build
|
|
working-directory: claudekit
|
|
|
|
- name: Build superpowers
|
|
run: npm ci && npm test && npm run build
|
|
working-directory: superpowers
|
|
|
|
- name: Build bmad
|
|
run: npm ci && npm run build
|
|
working-directory: bmad
|
|
|
|
- name: Build gstack
|
|
run: npm ci && npm run build
|
|
working-directory: gstack
|
|
env:
|
|
SITE_URL: https://tiennm99dev.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: Build gsd-framework
|
|
run: npm ci && npm run test:run && npm run build
|
|
working-directory: gsd-framework
|
|
|
|
- name: Assemble site
|
|
run: |
|
|
set -euo pipefail
|
|
mkdir -p _site
|
|
cp index.html _site/
|
|
cp -r claudekit/dist _site/claudekit
|
|
cp -r superpowers/dist _site/superpowers
|
|
cp -r bmad/dist _site/bmad
|
|
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
|
|
cp -r gsd-framework/dist _site/gsd-framework
|
|
mkdir -p _site/advanced-claude-workflows
|
|
cp advanced-claude-workflows/thumbnail.html _site/advanced-claude-workflows/index.html
|
|
mkdir -p _site/cowork-complete-guide
|
|
cp cowork-complete-guide/index.html cowork-complete-guide/pikachu-connect.html _site/cowork-complete-guide/
|
|
|
|
- uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: _site
|
|
|
|
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
|