File tree 2 files changed +81
-0
lines changed
2 files changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ defaults :
4
+ run :
5
+ working-directory : ./website
6
+
7
+ on :
8
+ push :
9
+ branches :
10
+ - main
11
+
12
+ jobs :
13
+ build :
14
+ name : Build Docusaurus
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+ - uses : actions/setup-node@v4
21
+ with :
22
+ node-version : 22
23
+ cache : npm
24
+
25
+ - name : Install dependencies
26
+ run : npm ci
27
+ - name : Build website
28
+ run : npm run build
29
+
30
+ - name : Upload Build Artifact
31
+ uses : actions/upload-pages-artifact@v3
32
+ with :
33
+ path : build
34
+
35
+ deploy :
36
+ name : Deploy to GitHub Pages
37
+ needs : build
38
+
39
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
40
+ permissions :
41
+ pages : write # to deploy to Pages
42
+ id-token : write # to verify the deployment originates from an appropriate source
43
+
44
+ # Deploy to the github-pages environment
45
+ environment :
46
+ name : github-pages
47
+ url : ${{ steps.deployment.outputs.page_url }}
48
+
49
+ runs-on : ubuntu-latest
50
+ steps :
51
+ - name : Deploy to GitHub Pages
52
+ id : deployment
53
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change
1
+ name : Test deployment
2
+
3
+ defaults :
4
+ run :
5
+ working-directory : ./website
6
+
7
+ on :
8
+ pull_request :
9
+ branches :
10
+ - main
11
+
12
+ jobs :
13
+ test-deploy :
14
+ name : Test deployment
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+ - uses : actions/setup-node@v4
21
+ with :
22
+ node-version : 22
23
+ cache : npm
24
+
25
+ - name : Install dependencies
26
+ run : npm ci
27
+ - name : Test build website
28
+ run : npm run build
You can’t perform that action at this time.
0 commit comments