feat: test gitea

This commit is contained in:
mozzie 2024-06-04 10:55:56 +08:00
parent 26e7cb732c
commit 32931a1442
2 changed files with 37 additions and 10 deletions

View File

@ -1,10 +0,0 @@
---
kind: pipeline
type: exec
name: blog 发布
steps:
- name: publish
commands:
- cp -rf public/* /www/wwwroot/caddy/html/blog-hexo/
- echo all works done!

View File

@ -0,0 +1,37 @@
name: Build Project
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # or specify the version you need
- name: Install pnpm
run: npm install -g pnpm
- 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
- name: move dist assets
run: cp -rf public/* /www/wwwroot/caddy/html/blog-hexo/