Skip to content

Commit c3707df

Browse files
mcp-tool-shopclaude
andcommitted
ci(pages): fold GitHub Pages deploy into ci.yml (deploy-pages job, main-only)
Director chose fold-not-3rd-workflow. Added a deploy-pages job to ci.yml: needs build-and-test, runs only on push to main, builds site/ and deploys to GitHub Pages (job-level pages:write + id-token:write + github-pages environment). Removed the held scaffold pages.yml. Net: 2 root workflows (ci.yml + release.yml), honoring github-actions.md max-2. Pages already enabled (build_type=workflow); handbook + landing deploy to https://mcp-tool-shop-org.github.io/loadout-os/. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ddbba34 commit c3707df

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
paths:
77
- "packages/**"
88
- "apps/**"
9+
- "site/**"
910
- "package.json"
1011
- "package-lock.json"
1112
- "tsconfig.base.json"
@@ -14,6 +15,7 @@ on:
1415
paths:
1516
- "packages/**"
1617
- "apps/**"
18+
- "site/**"
1719
- "package.json"
1820
- "package-lock.json"
1921
- "tsconfig.base.json"
@@ -39,3 +41,35 @@ jobs:
3941
- run: npm run build
4042
- run: npm test
4143
- run: npm audit --audit-level=moderate
44+
45+
# Deploy the handbook + landing to GitHub Pages — only on a push to main,
46+
# only after build-and-test passes. Folded into this workflow (rather than a
47+
# separate pages.yml) to honor the github-actions.md max-2-workflows rule
48+
# (ci.yml + release.yml).
49+
deploy-pages:
50+
needs: build-and-test
51+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
52+
runs-on: ubuntu-latest
53+
permissions:
54+
contents: read
55+
pages: write
56+
id-token: write
57+
environment:
58+
name: github-pages
59+
url: ${{ steps.deployment.outputs.page_url }}
60+
steps:
61+
- uses: actions/checkout@v4
62+
- uses: actions/setup-node@v4
63+
with:
64+
node-version: 22
65+
- name: Install site dependencies
66+
working-directory: site
67+
run: npm ci
68+
- name: Build site
69+
working-directory: site
70+
run: npm run build
71+
- uses: actions/upload-pages-artifact@v3
72+
with:
73+
path: site/dist
74+
- id: deployment
75+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)