parent
ebead200a1
commit
c855b66d52
|
@ -7,7 +7,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
@ -18,20 +18,20 @@ jobs:
|
|||
with:
|
||||
node-version: '18' # or specify the version you need
|
||||
|
||||
- name: Install pnpm
|
||||
run: npm i -g pnpm hexo
|
||||
# - name: Install pnpm
|
||||
# run: npm i -g pnpm hexo
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
# - name: Install dependencies
|
||||
# run: pnpm install
|
||||
|
||||
- name: hexo clean
|
||||
run: hexo cl
|
||||
# - name: hexo clean
|
||||
# run: hexo cl
|
||||
|
||||
- name: hexo generate
|
||||
run: hexo g
|
||||
# - name: hexo generate
|
||||
# run: hexo g
|
||||
|
||||
- name: build algolia search index
|
||||
run: pnpm run search
|
||||
# - name: build algolia search index
|
||||
# run: pnpm run search
|
||||
|
||||
- name: move dist assets
|
||||
run: mv public/* /www/wwwroot/caddy/html/blog-hexo/
|
||||
- name: move dist assets to host
|
||||
run: pwd
|
Loading…
Reference in New Issue
Block a user