Update build.yml

This commit is contained in:
lilingfengdev 2024-04-04 10:35:08 +08:00 committed by GitHub
parent 15ea0c7b55
commit f2f9d68d03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,16 @@ jobs:
uses: actions/checkout@master
with:
persist-credentials: false
# 启用缓存加速部署
- name: Cache node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# 编译出静态页面
- name: Install and Build
run: npm install && npm run build
@ -101,4 +111,4 @@ jobs:
# upload_url: ${{ steps.create-new-release.outputs.upload_url }}
# asset_path: Banker-Wiki-English.pdf
# asset_name: Banker-Wiki-English.pdf
# asset_content_type: application/zip
# asset_content_type: application/zip