From cb2898668394fd71d0241e6c73c361f801984ee6 Mon Sep 17 00:00:00 2001 From: JinMao Date: Wed, 12 Oct 2022 18:13:51 +0800 Subject: [PATCH] fix: workflows --- .github/workflows/deploy.yml | 8 ++++---- .github/workflows/ftp-schedule.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b974f5ef7..28913df0c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -59,7 +59,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Sed Config Base shell: bash @@ -69,7 +69,7 @@ jobs: cat ./.env.production - name: use Node.js 16 - uses: actions/setup-node@v2.1.2 + uses: actions/setup-node@v3 with: node-version: '16.x' @@ -78,7 +78,7 @@ jobs: run: echo "::set-output name=dir::$(yarn cache dir)" - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.yarn-cache.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -109,7 +109,7 @@ jobs: cp dist/index.html dist/404.html - name: Deploy - uses: peaceiris/actions-gh-pages@v2.5.0 + uses: peaceiris/actions-gh-pages@v3 env: ACTIONS_DEPLOY_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}} PUBLISH_BRANCH: gh-pages diff --git a/.github/workflows/ftp-schedule.yml b/.github/workflows/ftp-schedule.yml index 6db8dc8b5..b0ff3a016 100644 --- a/.github/workflows/ftp-schedule.yml +++ b/.github/workflows/ftp-schedule.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Sed Config Base shell: bash @@ -22,7 +22,7 @@ jobs: cat ./.env.production - name: use Node.js 16 - uses: actions/setup-node@v2.1.2 + uses: actions/setup-node@v3 with: node-version: '16.x' @@ -31,7 +31,7 @@ jobs: run: echo "::set-output name=dir::$(yarn cache dir)" - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.yarn-cache.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}