Files
chat_web_app/.gitea/workflows/deploy-prod.yml
T
westfarn befe3cdb4c
Unit Tests / test (pull_request) Successful in 14s
Enable beta auto-deploy and Tianji consent-gated events (#35)
Flip workflows so master deploys beta and prod is workflow_dispatch only.
Load distinct Tianji website IDs from env; page views always on, custom events require consent.
2026-07-27 07:27:22 -05:00

39 lines
846 B
YAML

name: Deploy Prod
# Manual prod deploy only (mirrors dta_webapp). Push to master deploys beta.
on:
workflow_dispatch: {}
jobs:
unit-tests:
runs-on: self-hosted
defaults:
run:
working-directory: llm-fe
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test:ci
deploy-prod:
needs: unit-tests
runs-on: self-hosted
env:
SERVER_INFRA_ROOT: /home/westfarn/Documents/repos/server-infra
steps:
- name: Deploy chat_web_app prod
run: |
"$SERVER_INFRA_ROOT/scripts/deploy.sh" \
--app chat_web_app \
--env prod \
--ref "${{ gitea.sha }}"