mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-09 18:32:52 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user