Add Gitea Actions deploy workflow for talkpro.info
Some checks failed
Deploy to talkpro / build-and-sync (push) Failing after 18s
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:
23
README.md
23
README.md
@@ -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
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user