From a9156a0a10a4f69a8c73080d0f431cabe03573c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=87=AF=E9=BE=99?= <502431556@qq.com> Date: Fri, 18 Feb 2022 15:20:20 +0800 Subject: [PATCH] release: v3 release test --- .github/workflows/main.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab88837..08347bc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,6 +30,18 @@ jobs: 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 --local user.email "321200875@qq.com" + git config --local user.name "kailong321200875" + - name: Build run: | yarn install @@ -38,7 +50,7 @@ jobs: - name: Deploy uses: peaceiris/actions-gh-pages@v2.5.0 env: - ACTIONS_DEPLOY_KEY: ${{secrets.ACCESS_TOKEN}} + ACTIONS_DEPLOY_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}} PUBLISH_BRANCH: gh-pages PUBLISH_DIR: ./dist-pro with: