blog-hexo/.gitea/workflows/build.yml

37 lines
691 B
YAML
Raw Normal View History

2024-06-04 10:55:56 +08:00
name: Build Project
on:
push:
branches:
- master
jobs:
build:
2024-06-04 13:07:42 +08:00
runs-on: docker
2024-06-04 10:55:56 +08:00
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
2024-06-04 11:02:02 +08:00
node-version: '18' # or specify the version you need
2024-06-04 10:55:56 +08:00
2024-06-04 13:07:42 +08:00
# - name: Install pnpm
# run: npm i -g pnpm hexo
2024-06-04 10:55:56 +08:00
2024-06-04 13:07:42 +08:00
# - name: Install dependencies
# run: pnpm install
2024-06-04 10:55:56 +08:00
2024-06-04 13:07:42 +08:00
# - name: hexo clean
# run: hexo cl
2024-06-04 10:55:56 +08:00
2024-06-04 13:07:42 +08:00
# - name: hexo generate
# run: hexo g
2024-06-04 10:55:56 +08:00
2024-06-04 13:07:42 +08:00
# - name: build algolia search index
# run: pnpm run search
2024-06-04 10:55:56 +08:00
2024-06-04 13:07:42 +08:00
- name: move dist assets to host
run: pwd