Skip to content

Commit

Permalink
feat: 写死publicPath
Browse files Browse the repository at this point in the history
  • Loading branch information
yangmingming committed Oct 12, 2023
1 parent 8ff3ab4 commit cf91588
Show file tree
Hide file tree
Showing 7 changed files with 1,509 additions and 32,453 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,27 @@ on:
branches:
- homepage
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn
- run: yarn build
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: build static page
run: pnpm build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
registry="https://registry.npmmirror.com"
# 源配置为: https://npm.taobao.org/dist 看起来不对, 换成淘宝node地址
disturl="https://npmmirror.com/mirrors/node"
nvm_nodejs_org_mirror="https://npmmirror.com/mirrors/node"
Loading

0 comments on commit cf91588

Please sign in to comment.