Files
Zayn JarvisandClaude Opus 4.6 523d6c5967 fix(docs): deploy docs on PR merge to main (#1792)
* fix(docs): deploy docs on PR merge to main

The push trigger and deploy job were removed in #1778, leaving docs
unable to auto-deploy when PRs touching docs/ merge to main.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(docs): add PR build check alongside deploy on merge

1. PR: run docs build to catch broken markdown before merge
2. Push to main / manual dispatch: build and deploy to GitHub Pages

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-29 15:11:32 +08:00

38 lines
847 B
YAML

name: 17. Docs
on:
pull_request:
paths:
- 'docs/**'
- '.github/workflows/_docs.yml'
- '.github/workflows/_docs-deploy.yml'
- '.github/workflows/docs.yml'
push:
branches: [ main ]
paths:
- 'docs/**'
- '.github/workflows/_docs.yml'
- '.github/workflows/_docs-deploy.yml'
- '.github/workflows/docs.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
docs-check:
name: Build Docs
if: github.event_name == 'pull_request'
uses: ./.github/workflows/_docs.yml
permissions:
contents: read
docs-deploy:
name: Build and Deploy Docs
if: github.repository == 'volcengine/OpenViking' && github.event_name != 'pull_request'
uses: ./.github/workflows/_docs-deploy.yml
permissions:
contents: read
pages: write
id-token: write