Skip to content

Commit abdeeb4

Browse files
committed
Add gh pages deploy for docs
1 parent 45a2a2f commit abdeeb4

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: "22"
16+
- run: pnpm install
17+
- run: NUXT_APP_BASE_URL=/vue-split-panel/ pnpm -F docs nuxt build --preset github_pages
18+
env:
19+
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
20+
- name: Upload artifact
21+
uses: actions/upload-pages-artifact@v3
22+
with:
23+
path: ./.output/public
24+
25+
deploy:
26+
needs: build
27+
permissions:
28+
pages: write
29+
id-token: write
30+
31+
environment:
32+
name: github-pages
33+
url: ${{ steps.deployment.outputs.page_url }}
34+
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)