This commit is contained in:
parent
469f9ce31d
commit
ac475f5b23
|
@ -8,32 +8,25 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:18
|
||||||
|
options: --volume /www/wwwroot/caddy/html/:/public
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Install pnpm
|
||||||
uses: actions/setup-node@v2
|
run: npm i -g pnpm hexo
|
||||||
with:
|
|
||||||
node-version: '18' # or specify the version you need
|
|
||||||
|
|
||||||
# - name: Install pnpm
|
- name: Install dependencies
|
||||||
# run: npm i -g pnpm hexo
|
run: pnpm install
|
||||||
|
|
||||||
# - name: Install dependencies
|
- name: hexo clean
|
||||||
# run: pnpm install
|
run: hexo cl
|
||||||
|
|
||||||
# - name: hexo clean
|
- name: hexo generate
|
||||||
# run: hexo cl
|
run: hexo g
|
||||||
|
|
||||||
# - name: hexo generate
|
- name: build algolia search index
|
||||||
# run: hexo g
|
run: pnpm run search
|
||||||
|
|
||||||
# - name: build algolia search index
|
|
||||||
# run: pnpm run search
|
|
||||||
- name: move dist assets to host
|
|
||||||
run: ls
|
|
||||||
|
|
||||||
- name: move dist assets to host
|
|
||||||
run: pwd
|
|
Loading…
Reference in New Issue
Block a user