File tree 1 file changed +40
-0
lines changed
1 file changed +40
-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
+ # Review gh actions docs if you want to further define triggers, paths, etc
8
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9
+
10
+ jobs :
11
+ deploy :
12
+ name : Deploy to GitHub Pages
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ - uses : actions/setup-node@v3
17
+ with :
18
+ node-version : 18
19
+ cache : npm
20
+
21
+ - name : Install dependencies
22
+ run : npm ci
23
+ - name : Build website
24
+ run : npm build
25
+
26
+ # Popular action to deploy to GitHub Pages:
27
+ # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
28
+ - name : Deploy to GitHub Pages
29
+ uses : peaceiris/actions-gh-pages@v3
30
+ with :
31
+ github_token : ${{ secrets.GITHUB_TOKEN }}
32
+ # Build output to publish to the `gh-pages` branch:
33
+ publish_dir : ./build
34
+ # The following lines assign commit authorship to the official
35
+ # GH-Actions bot for deploys to `gh-pages` branch:
36
+ # https://github.com/actions/checkout/issues/13#issuecomment-724415212
37
+ # The GH actions bot is used by default if you didn't specify the two fields.
38
+ # You can swap them out with your own user credentials.
39
+ user_name : github-actions[bot]
40
+ user_email : 41898282+github-actions[bot]@users.noreply.github.com
You can’t perform that action at this time.
0 commit comments