Skip to content

Commit

Permalink
Update Hexo to 7.3.0 (#1757)
Browse files Browse the repository at this point in the history
* ci: update github page workflow

- runner: ubuntu-20.04 -> ubuntu-24.04
- actions:
  checkout: v3 -> v4
  setup-node: v3 -> v4
  cache: v3 -> v4
  actions-gh-pages: v3 -> v4
- node.js: v14 -> v22

* build: update hexo to v7.3.0

* fix(title.ejs): exception after hexo update
  • Loading branch information
WhiredPlanck authored Dec 23, 2024
1 parent 08956d8 commit f4cfd9f
Show file tree
Hide file tree
Showing 4 changed files with 1,855 additions and 6,458 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
Expand All @@ -19,18 +19,18 @@ jobs:
env:
TZ: Asia/Shanghai
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '22'

- name: Setup Hexo
run: npm install -g hexo-cli

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -51,7 +51,7 @@ jobs:
hexo generate
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/master' }}
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
Expand Down
Loading

0 comments on commit f4cfd9f

Please sign in to comment.