# Gitea Actions Quick Start Guide This is a quick reference guide for getting started with the GlyphDiff CI/CD pipeline. ## 🚀 Quick Start (5 Minutes) ### 1. Verify Actions Enabled 1. Go to your Gitea instance → Site Admin → Actions 2. Ensure Actions is enabled ### 2. Enable Actions for Repository 1. Go to repository → Settings → Actions 2. Enable Actions (if not already enabled) ### 3. Commit and Push Workflows ```bash git add .gitea/ git commit -m "Add Gitea Actions CI/CD workflows" git push origin main ``` ### 4. Verify Workflows Run - Go to repository → Actions tab - You should see workflows running on push ## 📋 Workflow Summary | Workflow | What It Does | When It Runs | | ---------- | --------------------------------------- | --------------------------------- | | **lint** | Runs oxlint & dprint check | Push/PR to main/develop/feature/* | | **test** | Type check & Playwright E2E tests | Push/PR to main/develop/feature/* | | **build** | Builds SvelteKit production bundle | Push to main/develop, PRs | | **deploy** | Deploys to production (configure first) | Push to main, manual trigger | ## 🔧 Self-Hosted Runner Setup (Linux) ### Install act_runner ```bash wget -O /usr/local/bin/act_runner https://gitea.com/act_runner/releases/download/v0.2.11/act_runner-0.2.11-linux-amd64 chmod +x /usr/local/bin/act_runner ``` ### Register Runner 1. Go to repo → Settings → Actions → Runners 2. Click "New Runner" 3. Copy registration token 4. Run: ```bash act_runner register \ --instance https://your-gitea-instance.com \ --token YOUR_TOKEN \ --name "linux-runner-1" \ --labels ubuntu-latest,linux,docker \ --no-interactive ``` ### Run as Service ```bash # Create systemd service sudo tee /etc/systemd/system/gitea-runner.service > /dev/null <