Skip to content

Commit 39223e0

Browse files
authored
ci docs, update ignore (#474)
1 parent f5df83d commit 39223e0

File tree

3 files changed

+82
-38
lines changed

3 files changed

+82
-38
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Deploy main docs → gh-pages/docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions: write-all
9+
10+
concurrency:
11+
group: pages
12+
cancel-in-progress: false
13+
14+
jobs:
15+
build-and-deploy:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout source
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup repo 🔧
25+
uses: ./.github/actions
26+
27+
- name: Install dependencies
28+
working-directory: docs
29+
run: pnpm install
30+
31+
- name: Build docs site
32+
working-directory: docs
33+
env:
34+
NUXT_APP_BASE_URL: "/docs/"
35+
run: pnpm build
36+
37+
- name: Deploying docs 🚀
38+
uses: JamesIves/github-pages-deploy-action@v4
39+
with:
40+
branch: gh-pages
41+
folder: docs/.output/public
42+
target-folder: docs
43+
clean: false

.gitignore

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,42 @@ public/cube
4646
package-lock.json
4747
.qodo
4848
*.sh
49-
pnpm-lock.yaml
49+
pnpm-lock.yaml
50+
51+
# Nuxt dev/build outputs
52+
docs/.output
53+
docs/.data
54+
docs/.nuxt
55+
docs/.nitro
56+
docs/.cache
57+
docs/dist
58+
59+
# Node dependencies
60+
docs/node_modules
61+
62+
# Logs
63+
docs/logs
64+
docs/*.log
65+
66+
# Misc
67+
docs/.DS_Store
68+
docs/.fleet
69+
docs/.idea
70+
docs/.eslintcache
71+
72+
# Local env files
73+
docs/.env
74+
docs/.env.*
75+
docs/!.env.example
76+
77+
# npm pack
78+
docs/*.tgz
79+
80+
# Temp files
81+
docs/.tmp
82+
docs/.profile
83+
docs/*.0x
84+
85+
#VSC
86+
docs/.history
87+
docs/.wrangler

docs/.gitignore

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)