diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf294710..14b1db2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,3 +160,31 @@ jobs: e2e/report/ test-results/ retention-days: 7 + + sync-docs: + runs-on: ubuntu-latest + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + steps: + - name: Checkout Sencho repo + uses: actions/checkout@v4 + with: + path: sencho + + - name: Checkout sencho-docs repo + uses: actions/checkout@v4 + with: + repository: AnsoCode/sencho-docs + token: ${{ secrets.DOCS_REPO_TOKEN }} + path: sencho-docs + + - name: Copy /docs into sencho-docs root + run: rsync -av --delete sencho/docs/ sencho-docs/ + + - name: Commit and push to sencho-docs + working-directory: sencho-docs + run: | + git config user.email "docs-bot@sencho.io" + git config user.name "Sencho Docs Bot" + git add -A + git commit -m "docs: sync from main@${{ github.sha }}" || echo "No changes to commit" + git push diff --git a/CHANGELOG.md b/CHANGELOG.md index 20a0870a..604d4447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- feat: automated documentation pipeline with Mintlify sync + ### Fixed - **COOP header console warning on HTTP deployments:** Helmet sends `Cross-Origin-Opener-Policy: same-origin` by default, which browsers silently ignore over HTTP but log as a console error. Disabled via `crossOriginOpenerPolicy: false` — same rationale as the existing HSTS and COEP disables. - **Inline script CSP violation from Vite module-preload polyfill:** Vite's production build injects a small inline `