diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 5118756..6325bbf 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,7 +15,6 @@ jobs: with: node-version: '22' cache: 'npm' # 启用npm缓存 - - name: Cache node_modules uses: actions/cache@v4 id: npm-cache @@ -36,6 +35,11 @@ jobs: else echo "Using cached dependencies" fi + if ! command -v hexo &> /dev/null; then + npm install -g hexo-cli + else + echo "Hexo CLI is already installed" + fi - name: Setup SSH Key and Git Config env: