From d4e2885ae081ea3982c39c4eb9b015b487919465 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Tue, 30 Dec 2025 13:12:45 +0300 Subject: [PATCH] git commit -m 'fix: format' --- .gitea/QUICKSTART.md | 200 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 200 insertions(+) create mode 100644 .gitea/QUICKSTART.md diff --git a/.gitea/QUICKSTART.md b/.gitea/QUICKSTART.md new file mode 100644 index 0000000..4d43827 --- /dev/null +++ b/.gitea/QUICKSTART.md @@ -0,0 +1,200 @@ +# 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 <