File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
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
7
10
8
permissions :
11
9
contents : write
@@ -19,26 +17,18 @@ jobs:
19
17
- uses : actions/setup-node@v3
20
18
with :
21
19
node-version : 18
22
- cache : yarn
20
+ cache : npm
23
21
24
22
- name : Install dependencies
25
- run : yarn install --frozen-lockfile
23
+ run : npm ci
26
24
- name : Build website
27
- run : yarn build
25
+ run : npm run build
28
26
29
- # Popular action to deploy to GitHub Pages:
30
- # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
31
27
- name : Deploy to GitHub Pages
32
28
uses : peaceiris/actions-gh-pages@v3
33
29
with :
34
30
cname : learn-python.computenepal.com
35
31
github_token : ${{ secrets.GITHUB_TOKEN }}
36
- # Build output to publish to the `gh-pages` branch:
37
32
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
33
user_name : github-actions[bot]
44
34
user_email : 41898282+github-actions[bot]@users.noreply.github.com
You can’t perform that action at this time.
0 commit comments