Skip to content

Commit

Permalink
Update gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo authored Mar 23, 2024
1 parent a1c4a30 commit 7237b27
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,19 +34,15 @@ 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
run: npm run buildoffline
- 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
Expand Down

0 comments on commit 7237b27

Please sign in to comment.