32 lines
572 B
YAML
32 lines
572 B
YAML
name: Build Project
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: node:18
|
|
options: --volume /www/wwwroot/caddy/html/:/public
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install pnpm
|
|
run: npm i -g pnpm hexo
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: hexo clean
|
|
run: hexo cl
|
|
|
|
- name: hexo generate
|
|
run: hexo g
|
|
|
|
- name: build algolia search index
|
|
run: pnpm run search |