blog-hexo/.gitea/workflows/build.yml
mozzie ac475f5b23
All checks were successful
Build Project / build (push) Successful in 3m18s
1
2024-06-04 13:17:39 +08:00

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