File tree Expand file tree Collapse file tree 3 files changed +78
-0
lines changed Expand file tree Collapse file tree 3 files changed +78
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## New Pull Request
2
+
3
+ <!-- Before Submitting the pull request make sure the following checklist is complete. -->
4
+
5
+ - [ ] Descriptive Comments
6
+ - [ ] Format for pull request [ type] : Description
7
+ - [ ] Bug free code
8
+ - [ ] Easy to understand language
9
+
10
+ <!-- For referencing the Issue solved use Fixed: #issueNumber -->
Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
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
+ permissions :
11
+ contents : write
12
+
13
+ jobs :
14
+ deploy :
15
+ name : Deploy to GitHub Pages
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ - uses : actions/setup-node@v3
20
+ with :
21
+ node-version : 18
22
+ cache : yarn
23
+
24
+ - name : Install dependencies
25
+ run : yarn install --frozen-lockfile
26
+ - name : Build website
27
+ run : yarn build
28
+
29
+ # Popular action to deploy to GitHub Pages:
30
+ # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
31
+ - name : Deploy to GitHub Pages
32
+ uses : peaceiris/actions-gh-pages@v3
33
+ with :
34
+ cname : learn-html.computenepal.com
35
+ github_token : ${{ secrets.GITHUB_TOKEN }}
36
+ # Build output to publish to the `gh-pages` branch:
37
+ publish_dir : ./build
38
+ # The following lines assign commit authorship to the official
39
+ # GH-Actions bot for deploys to `gh-pages` branch:
40
+ # https://github.com/actions/checkout/issues/13#issuecomment-724415212
41
+ # The GH actions bot is used by default if you didn't specify the two fields.
42
+ # You can swap them out with your own user credentials.
43
+ user_name : github-actions[bot]
44
+ 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
+ - master
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
+ test-deploy :
12
+ name : Test deployment
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 : yarn
20
+
21
+ - name : Install dependencies
22
+ run : yarn install --frozen-lockfile
23
+ - name : Test build website
24
+ run : yarn build
You can’t perform that action at this time.
0 commit comments