mirror of
https://github.com/volcengine/OpenViking.git
synced 2026-09-28 11:43:00 +08:00
* 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>
38 lines
847 B
YAML
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
|