diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 76344459..d578f952 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -490,6 +490,12 @@ jobs: id: start-upyun-download run: echo "start_time=$(date +%s)" >> $GITHUB_OUTPUT + - name: Checkout code (for scripts) + if: steps.check.outputs.deployed == 'true' + uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: Download build artifact if: steps.check.outputs.deployed == 'true' uses: actions/download-artifact@v4 @@ -512,12 +518,6 @@ jobs: id: start-upyun-upload run: echo "start_time=$(date +%s)" >> $GITHUB_OUTPUT - - name: Checkout code (for scripts) - if: steps.check.outputs.deployed == 'true' - uses: actions/checkout@v4 - with: - fetch-depth: 1 - - name: Deploy to UpYun if: steps.check.outputs.deployed == 'true' env: