Files
hoelee-blog/.gitea/workflows/deploy.yml
T
2026-09-06 04:24:00 +08:00

27 lines
585 B
YAML

name: Deploy
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git config --global --add safe.directory '*'
git clone --depth 1 "https://git.hoelee.com/hoelee/hoelee-blog.git" .
git checkout $GITHUB_SHA 2>/dev/null || true
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deploy to unRaid docroot
run: |
rm -rf /mnt/user/docker/blog/html/*
cp -r dist/* /mnt/user/docker/blog/html/