Files
probably-rendering-one-more…/.gitea/workflows/wiki.yml
T
codex-bot a2330b22e2
python CI and deployment / verify-and-deploy (push) Successful in 7m23s
studio CI and deployment / verify-and-deploy (push) Failing after 5m28s
wiki CI and deployment / verify-and-deploy (push) Failing after 6m13s
Restructure into Wiki, Studio and Python monorepo with scoped CI
2026-10-25 21:13:43 +08:00

44 lines
1.3 KiB
YAML

name: wiki CI and deployment
on:
push:
branches: [main]
paths:
- 'apps/wiki/**'
- '.gitea/workflows/wiki.yml'
- 'Dockerfile'
- 'compose.yml'
- 'scripts/**'
- 'pnpm-workspace.yaml'
pull_request:
paths:
- 'apps/wiki/**'
- '.gitea/workflows/wiki.yml'
- 'Dockerfile'
- 'compose.yml'
- 'scripts/**'
- 'pnpm-workspace.yaml'
workflow_dispatch:
jobs:
verify-and-deploy:
runs-on: ces-control
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate configuration
run: docker compose --env-file apps/wiki/.env.example config --quiet
- name: Build and verify Wiki
run: docker build --target integration -t "prompt-tests:${{ gitea.sha }}" .
- name: Build runtime
run: docker build --target runtime -t "prompt:${{ gitea.sha }}" .
- name: Integration stack
env:
PROMPT_IMAGE: prompt:${{ gitea.sha }}
PROMPT_TEST_IMAGE: prompt-tests:${{ gitea.sha }}
run: bash scripts/integration.sh
- name: Deploy Wiki
if: gitea.ref == 'refs/heads/main' && (gitea.event_name == 'push' || gitea.event_name == 'workflow_dispatch')
run: bash scripts/deploy.sh "${{ gitea.sha }}"