From 2c85b2aa190a69f6fd420c40c62c8c8499946a9a Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Sun, 21 Feb 2021 10:52:37 +0800 Subject: [PATCH] :construction_worker: update ci --- .github/workflows/site_deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/site_deploy.yml b/.github/workflows/site_deploy.yml index 5c6f081d..48db972f 100644 --- a/.github/workflows/site_deploy.yml +++ b/.github/workflows/site_deploy.yml @@ -10,6 +10,12 @@ jobs: steps: - uses: actions/checkout@v2 + if: github.event_name == 'push' + + - uses: actions/checkout@v2 + if: github.event_name != 'push' + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Get yarn cache directory path id: yarn-cache-dir-path @@ -46,7 +52,7 @@ jobs: publish-dir: './docs/.vuepress/dist' production-branch: master github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: 'Deploy ${{ env.BRANCH_NAME }}@${{ github.sha }}' + deploy-message: 'Deploy ${{ env.DEPLOY_NAME }}@${{ github.sha }}' enable-commit-comment: false alias: ${{ env.DEPLOY_NAME }} env: