Show full-screen overlay with spinner when server is unreachable, with periodic health checks that auto-hide on reconnect. Add Gitea Actions workflow for auto-deploy on release tags. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
703 B
YAML
32 lines
703 B
YAML
name: Build and Deploy
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy to /opt/wled-controller
|
|
run: |
|
|
DEPLOY_DIR=/opt/wled-controller
|
|
|
|
# Ensure deploy directory exists
|
|
mkdir -p "$DEPLOY_DIR/data" "$DEPLOY_DIR/logs" "$DEPLOY_DIR/config"
|
|
|
|
# Copy server files to deploy directory
|
|
rsync -a --delete \
|
|
--exclude 'data/' \
|
|
--exclude 'logs/' \
|
|
server/ "$DEPLOY_DIR/"
|
|
|
|
# Build and restart
|
|
cd "$DEPLOY_DIR"
|
|
docker compose down
|
|
docker compose up -d --build
|