File tree Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy docs to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - docs-github-pages
8
+
9
+ # Allows you to run this workflow manually from the Actions tab.
10
+ workflow_dispatch :
11
+
12
+ # Sets permissions of the "GITHUB_TOKEN" to allow deployment to GitHub Pages.
13
+ permissions :
14
+ contents : read
15
+ pages : write
16
+ id-token : write
17
+
18
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress
19
+ # and latest queued. However, do NOT cancel in-progress runs as we want to allow these
20
+ # production deployments to complete.
21
+ concurrency :
22
+ group : " pages"
23
+ cancel-in-progress : false
24
+
25
+ jobs :
26
+ # Build
27
+ build :
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - name : Checkout
31
+ uses : actions/checkout@v4
32
+ - name : Setup Node
33
+ uses : actions/setup-node@v4
34
+ with :
35
+ node-version : " 20"
36
+ cache : " yarn"
37
+ - name : Setup Pages
38
+ uses : actions/configure-pages@v5
39
+ - name : Restore cache
40
+ uses : actions/cache@v4
41
+ with :
42
+ path : |
43
+ dist
44
+ .nuxt
45
+ key : ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }}
46
+ restore-keys : |
47
+ ${{ runner.os }}-nuxt-build-
48
+ - name : Install dependencies
49
+ run : yarn install --check-files --frozen-lockfile --non-interactive
50
+ - name : Static HTML export with Nuxt
51
+ run : yarn docs-gen
52
+ - name : Upload artifact
53
+ uses : actions/upload-pages-artifact@v3
54
+ with :
55
+ path : ./docs-dist
56
+
57
+ # Deploy
58
+ deploy :
59
+ environment :
60
+ name : github-pages
61
+ url : ${{ steps.deployment.outputs.page_url }}
62
+ runs-on : ubuntu-latest
63
+ needs : build
64
+ steps :
65
+ - name : Deploy to GitHub Pages
66
+ id : deployment
67
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments