File tree 2 files changed +55
-0
lines changed
2 files changed +55
-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 :
6
+ - main
7
+
8
+ jobs :
9
+ deploy :
10
+ name : Deploy to GitHub Pages
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-node@v3
15
+ with :
16
+ node-version : 18
17
+ cache : yarn
18
+
19
+ - name : Install dependencies
20
+ run : yarn install --frozen-lockfile
21
+
22
+ - name : Build website
23
+ run : yarn build
24
+
25
+ - name : Deploy to GitHub Pages
26
+ uses : peaceiris/actions-gh-pages@v3
27
+ with :
28
+ github_token : ${{ secrets.GITHUB_TOKEN }}
29
+ publish_dir : ./build
30
+ cname : docs.fragnet.net
31
+ user_name : github-actions[bot]
32
+ user_email : 41898282+github-actions[bot]@users.noreply.github.com
Original file line number Diff line number Diff line change
1
+ name : Test deployment
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ test-deploy :
10
+ name : Test deployment
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-node@v3
15
+ with :
16
+ node-version : 18
17
+ cache : yarn
18
+
19
+ - name : Install dependencies
20
+ run : yarn install --frozen-lockfile
21
+
22
+ - name : Test build website
23
+ run : yarn build
You can’t perform that action at this time.
0 commit comments