From 7237b27fd7d12919885e9618147893292eb376a0 Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Sat, 23 Mar 2024 22:02:06 +0800 Subject: [PATCH] Update gh-pages.yml --- .github/workflows/gh-pages.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index a6b4873..bfb64b3 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,9 +21,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 - - uses: actions/setup-node@v3.8.1 + - uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' - name: Cache dependencies uses: actions/cache@v4 @@ -34,10 +34,6 @@ jobs: - name: Install Dependency run: npm install - - # - name: 运行zx构建 - # run: npm run zx-build - - name: Building online versions of web pages run: npm run buildonline - name: Building downloadable offline versions of web pages @@ -45,8 +41,8 @@ jobs: - name: Workbox offline cache run: npx workbox injectManifest workbox-config.js - - name: Upload artifact - uses: actions/upload-pages-artifact@v2.0.0 + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v3.0.1 with: # Upload entire repository path: ./public-dist