File tree 1 file changed +53
-0
lines changed
1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ # Trigger the workflow every time you push to the `main` branch
5
+ # Using a different branch name? Replace `main` with your branch’s name
6
+ push :
7
+ # branches: [main]
8
+ branches : [dannyhw/docs-v9]
9
+ # Allows you to run this workflow manually from the Actions tab on GitHub.
10
+ workflow_dispatch :
11
+
12
+ # Allow this job to clone the repo and create a page deployment
13
+ permissions :
14
+ contents : read
15
+ pages : write
16
+ id-token : write
17
+
18
+ jobs :
19
+ build :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - name : Checkout your repository using git
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Set node version
26
+ uses : actions/setup-node@v4
27
+ with :
28
+ node-version : 20
29
+
30
+ - name : Install
31
+ shell : ' bash'
32
+ run : yarn install
33
+
34
+ - name : Build
35
+ shell : ' bash'
36
+ working-directory : docs
37
+ run : yarn build
38
+
39
+ - name : Upload Pages Artifact
40
+ uses : actions/upload-pages-artifact@v3
41
+ with :
42
+ path : ' docs/build/'
43
+
44
+ deploy :
45
+ needs : build
46
+ runs-on : ubuntu-latest
47
+ environment :
48
+ name : github-pages
49
+ url : ${{ steps.deployment.outputs.page_url }}
50
+ steps :
51
+ - name : Deploy to GitHub Pages
52
+ id : deployment
53
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments