Files
hexo/.gitea/workflows/build.yml
魏风 fdc36f1de4
Some checks failed
Build Hexo Site / build (push) Failing after 1s
test5
2026-03-10 22:03:46 +08:00

28 lines
562 B
YAML

name: Build Hexo Site
on:
push:
branches: [main, master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone "http://gitea:3000/${{ gitea.repository }}.git" .
git checkout "${{ gitea.sha }}"
- name: Install Node.js & Build
run: |
node -v
npm install
npm run build
- name: Deploy
run: |
rm -rf /home/ubuntu/html/*
cp -r public/* /home/ubuntu/html/
echo "✅ 构建完成!"