feat: test gitea
This commit is contained in:
parent
26e7cb732c
commit
32931a1442
10
.drone.yml
10
.drone.yml
|
@ -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!
|
37
.gitea/workflows/build.yml
Normal file
37
.gitea/workflows/build.yml
Normal 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/
|
Loading…
Reference in New Issue
Block a user