fix: workflows

This commit is contained in:
JinMao 2022-10-12 18:13:51 +08:00
parent a89ba204eb
commit cb28986683
2 changed files with 7 additions and 7 deletions

View File

@ -59,7 +59,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Sed Config Base - name: Sed Config Base
shell: bash shell: bash
@ -69,7 +69,7 @@ jobs:
cat ./.env.production cat ./.env.production
- name: use Node.js 16 - name: use Node.js 16
uses: actions/setup-node@v2.1.2 uses: actions/setup-node@v3
with: with:
node-version: '16.x' node-version: '16.x'
@ -78,7 +78,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)" run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache dependencies - name: Cache dependencies
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ steps.yarn-cache.outputs.dir }} path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@ -109,7 +109,7 @@ jobs:
cp dist/index.html dist/404.html cp dist/index.html dist/404.html
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0 uses: peaceiris/actions-gh-pages@v3
env: env:
ACTIONS_DEPLOY_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}} ACTIONS_DEPLOY_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}
PUBLISH_BRANCH: gh-pages PUBLISH_BRANCH: gh-pages

View File

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Sed Config Base - name: Sed Config Base
shell: bash shell: bash
@ -22,7 +22,7 @@ jobs:
cat ./.env.production cat ./.env.production
- name: use Node.js 16 - name: use Node.js 16
uses: actions/setup-node@v2.1.2 uses: actions/setup-node@v3
with: with:
node-version: '16.x' node-version: '16.x'
@ -31,7 +31,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)" run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache dependencies - name: Cache dependencies
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ steps.yarn-cache.outputs.dir }} path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}