更新 .gitea/workflows/deploy.yml
All checks were successful
Hexo Build and Deploy / Build Hexo and Deploy to GitHub (push) Successful in 11m29s
All checks were successful
Hexo Build and Deploy / Build Hexo and Deploy to GitHub (push) Successful in 11m29s
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user