Add Gitea Actions deploy workflow for talkpro.info
Some checks failed
Deploy to talkpro / build-and-sync (push) Failing after 18s

Build Astro on push to main/master and rsync dist/ to the marketing
server via SSH. Includes deploy-talkpro.sh, env example, and README.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-18 15:01:58 +08:00
parent 3933cf42c0
commit 6e90a4adb6
5 changed files with 140 additions and 0 deletions

View File

@@ -26,6 +26,29 @@ Open [http://localhost:4321](http://localhost:4321)
| `npm run build` | Build for production into `dist/` |
| `npm run preview` | Preview production build locally |
## Deploy (Gitea Actions → talkpro.info)
Pushes to **`main`** or **`master`** run [`.gitea/workflows/deploy-talkpro.yml`](.gitea/workflows/deploy-talkpro.yml): `npm ci``npm run build``rsync` `dist/` to the marketing server (`/home/ubuntu/talkpro`).
**Repository secrets** (Gitea → Settings → Secrets):
| Secret | Value |
|--------|--------|
| `TALKPRO_SSH_PRIVATE_KEY` | SSH private key (PEM) for `ubuntu@talkpro` |
| `TALKPRO_HOST` | Server IP, e.g. `13.214.179.69` |
| `TALKPRO_USER` | Optional; default `ubuntu` |
| `TALKPRO_REMOTE_ROOT` | Optional; default `/home/ubuntu/talkpro` |
Manual deploy from this repo:
```bash
cp .env.deploy.example .env.deploy # edit paths
set -a && source .env.deploy && set +a
bash scripts/deploy-talkpro.sh
```
`/api/site-links` (APK / App Store URLs) is still updated via the parent **talkpro** repo: `./scripts/post-talkpro-site-links.sh` on your laptop.
## Project Structure
```