diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 86f6956..680b5e3 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -19,7 +19,7 @@ jobs: - name: Checkout (local Gitea, no external actions) run: | - git clone --depth 1 https://oauth2:${{ github.token }}@git.xpcool.com/${{ github.repository }}.git . + git clone --depth 1 --branch "${{ github.ref_name }}" https://oauth2:${{ github.token }}@git.xpcool.com/${{ github.repository }}.git . git checkout ${{ github.sha }} - name: Use npmmirror registry (faster in CN)