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