Skip to content

Commit ae91e77

Browse files
authored
Update deploy.yml
1 parent fed7b4f commit ae91e77

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- 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
97

108
permissions:
119
contents: write
@@ -19,26 +17,18 @@ jobs:
1917
- uses: actions/setup-node@v3
2018
with:
2119
node-version: 18
22-
cache: yarn
20+
cache: npm
2321

2422
- name: Install dependencies
25-
run: yarn install --frozen-lockfile
23+
run: npm ci
2624
- name: Build website
27-
run: yarn build
25+
run: npm run build
2826

29-
# Popular action to deploy to GitHub Pages:
30-
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
3127
- name: Deploy to GitHub Pages
3228
uses: peaceiris/actions-gh-pages@v3
3329
with:
3430
cname: learn-python.computenepal.com
3531
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
# Build output to publish to the `gh-pages` branch:
3732
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.
4333
user_name: github-actions[bot]
4434
user_email: 41898282+github-actions[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)