Files
documentation/.gitea/workflows/build.yml
T
jarvis-at-skic f39c2a1e5f
Build and Deploy Documentation / build (push) Failing after 1m24s
feat: Initial Docusaurus setup with Stock Market Professional docs
- Set up Docusaurus with pnpm and TypeScript
- Structured docs for multi-application portfolio
- Added Stock Market Professional documentation:
  - Architecture & system design
  - Data monitoring module
  - Technical analysis engine
  - Signal generation with constraints (max 3/day, 30min hold)
- Added platform architecture overview
- Added getting started guide
- Added Gitea Actions CI/CD pipeline (build + artifact)
2026-07-16 19:47:40 +00:00

69 lines
1.7 KiB
YAML

name: Build and Deploy Documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Cache pnpm dependencies
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Upload build artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: docusaurus-build
path: build/
retention-days: 7
# Uncomment when deployment target is configured
# deploy:
# needs: build
# runs-on: ubuntu-latest
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# steps:
# - name: Download build artifact
# uses: actions/download-artifact@v4
# with:
# name: docusaurus-build
# path: build/
#
# - name: Deploy to server
# run: |
# # Add deployment steps here (rsync, docker, etc.)
# echo "Deploying documentation..."