You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pouchdb.apache.org by ja...@apache.org on 2026/04/29 10:36:08 UTC
(pouchdb) 01/02: ci: commit built docs to pouchdb-www repo, asf-site branch
This is an automated email from the ASF dual-hosted git repository.
janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
commit acf21d24e819d1937dbbc82fad4dd7f6357eaf2c
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Fri Mar 27 17:33:10 2026 +0100
ci: commit built docs to pouchdb-www repo, asf-site branch
---
.github/workflows/docs.yml | 33 +++++++++++++++++++++++++++++++++
README.md | 5 +++++
2 files changed, 38 insertions(+)
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 7110893cf..1feb3018c 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -30,3 +30,36 @@ jobs:
with:
node-version: 24
- run: BUILD=1 npm run build-site
+ - name: Setup SSH agent
+ uses: webfactory/ssh-agent@v0.9.0
+ with:
+ ssh-private-key: ${{ secrets.DEPLOY_KEY }}
+ - name: Checkout pouchdb-www repo
+ uses: actions/checkout@v4
+ with:
+ repository: neighbourhoodie/pouchdb-www
+ ref: asf-site
+ ssh-key: ${{ secrets.DEPLOY_KEY }}
+ path: checked-out-pouchdb-www
+ fetch-depth: 0
+ - name: Commit and push if changed
+ run: |
+ cd checked-out-pouchdb-www
+ git config user.name "CI"
+ git config user.email "ci@users.noreply.github.com"
+
+ # Juuust in case
+ git checkout asf-site
+
+ git rm -rf . || true
+
+ cp -R ../docs/_site/. .
+
+ if [[ -n $(git status --porcelain) ]]; then
+ echo "Committing changes…"
+ git add -A
+ git commit -m "Deploy site from ${GITHUB_REPOSITORY}@${GITHUB_SHA}"
+ git push git@github.com:neighbourhoodie/pouchdb-www.git asf-site --force
+ else
+ echo "No changes to commit"
+ fi
\ No newline at end of file
diff --git a/README.md b/README.md
index d08f85e98..2cd488685 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,11 @@ Using PouchDB
To get started using PouchDB, check out the [web site](https://pouchdb.com) and [API documentation](https://pouchdb.com/api.html).
+Deploying the Documentation Site www.pouchdb.com
+------------------------------------------------
+
+Doc website deployment is handled automatically once the changes land in `master`.
+
Getting Help
------------