From 57cc56a31a90cc06d8b5baa4c8b62167640d72f2 Mon Sep 17 00:00:00 2001 From: atdunbg Date: Tue, 14 Oct 2025 01:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/deploy.ym?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: