Skip to content

Commit da1571b

Browse files
committed
chore: docs deploy to gh pages
1 parent 05ded74 commit da1571b

File tree

4 files changed

+46
-15
lines changed

4 files changed

+46
-15
lines changed

.github/workflows/docs-deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy Docs to Github Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
paths:
7+
- "docs/**"
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-and-deploy:
13+
timeout-minutes: 15
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Check out code
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 2
21+
22+
- uses: pnpm/action-setup@v3
23+
with:
24+
version: 9
25+
26+
- name: Setup Node.js environment
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
30+
cache: "pnpm"
31+
32+
- name: Install dependencies
33+
run: pnpm install --filter=@repo/docs
34+
35+
- name: Build
36+
run: pnpm build --filter=@repo/docs
37+
38+
- name: Deploy
39+
uses: JamesIves/github-pages-deploy-action@4.1.0
40+
with:
41+
branch: gh-pages
42+
folder: apps/docs/out

apps/docs/next.config.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
typescript: {
5-
ignoreBuildErrors: true,
6-
},
7-
eslint: {
8-
ignoreDuringBuilds: true,
9-
},
4+
output: "export",
5+
basePath: process.env.PAGES_BASE_PATH,
106
};
117

128
export default nextConfig;

apps/web/next.config.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
import type { NextConfig } from "next";
22

3-
const nextConfig: NextConfig = {
4-
typescript: {
5-
ignoreBuildErrors: true,
6-
},
7-
eslint: {
8-
ignoreDuringBuilds: true,
9-
},
10-
};
3+
const nextConfig: NextConfig = {};
114

125
export default nextConfig;

turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": {
66
"dependsOn": ["^build"],
77
"inputs": ["$TURBO_DEFAULT$", ".env*"],
8-
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
8+
"outputs": ["dist/**", ".next/**", "!.next/cache/**", "out/**"]
99
},
1010
"lint": {
1111
"dependsOn": ["^lint"]

0 commit comments

Comments
 (0)