feat: add automated docs pipeline and scaffold /docs folder

- Add sync-docs CI job: runs on push to main, copies /docs into sencho-docs repo via DOCS_REPO_TOKEN
- Scaffold /docs with mint.json, getting-started/introduction.mdx, getting-started/quickstart.mdx, features/overview.mdx
- Update CHANGELOG
This commit is contained in:
SaelixCode
2026-03-22 21:08:16 -04:00
parent c36ee93416
commit 9496b14f72
6 changed files with 141 additions and 0 deletions
+28
View File
@@ -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