更新 .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:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
cache: 'npm' # 启用npm缓存
|
cache: 'npm' # 启用npm缓存
|
||||||
|
|
||||||
- name: Cache node_modules
|
- name: Cache node_modules
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
id: npm-cache
|
id: npm-cache
|
||||||
@ -36,6 +35,11 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "Using cached dependencies"
|
echo "Using cached dependencies"
|
||||||
fi
|
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
|
- name: Setup SSH Key and Git Config
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user