diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b8ac00a..a42b026 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -91,19 +91,6 @@ jobs: # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} # restore-keys: | # ${{ runner.os }}-yarn- - - - name: Set SSH Environment - env: - DOCS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} - run: | - mkdir -p ~/.ssh/ - echo "$ACTIONS_DEPLOY_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan github.com > ~/.ssh/known_hosts - chmod 700 ~/.ssh && chmod 600 ~/.ssh/* - git config --global user.email "vbenadmin@163.com" - git config --global user.name "vbenAdmin" - - name: Build env: NODE_OPTIONS: '--max_old_space_size=4096' @@ -118,9 +105,9 @@ jobs: git push origin --delete gh-pages - name: Deploy - uses: peaceiris/actions-gh-pages@v3.9.0 + uses: peaceiris/actions-gh-pages@4 with: - deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + deploy_key: ${{ secrets.GITHUB_TOKEN }} publish_branch: gh-pages publish_dir: ./dist cname: ui