Repository: sling-site Updated Branches: refs/heads/master e721c5fa8 -> d1c5a4333
Update build instructions Project: http://git-wip-us.apache.org/repos/asf/sling-site/repo Commit: http://git-wip-us.apache.org/repos/asf/sling-site/commit/d1c5a433 Tree: http://git-wip-us.apache.org/repos/asf/sling-site/tree/d1c5a433 Diff: http://git-wip-us.apache.org/repos/asf/sling-site/diff/d1c5a433 Branch: refs/heads/master Commit: d1c5a433358ce96999a1da9dc479dd52adb335c5 Parents: e721c5f Author: Bertrand Delacretaz <[email protected]> Authored: Fri Sep 29 16:17:25 2017 +0200 Committer: Bertrand Delacretaz <[email protected]> Committed: Fri Sep 29 16:17:25 2017 +0200 ---------------------------------------------------------------------- README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sling-site/blob/d1c5a433/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 157ec62..3ab60ec 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,31 @@ Clone this repository, run the below Maven command, open http://localhost:8820/ This allows you to experiment with your changes before eventually publishing them. ## How to publish the website -Clone this repository, build the site using `mvn clean package` and then sync the `target/sling-site-*` -folder to the `asf-site` branch of this Git repository, commit and push that branch. +Clone this repository and run the below commands or equivalent: + + git checkout master + + # Build the site + mvn clean package + + # Move aside the generated pages + mv target/sling-site-* /tmp/slingsite + + # Switch to the live branch and sync + git checkout asf-site + git pull origin asf-site + rsync -r /tmp/slingsite/* . + + # At this point, git diff as needed to verify + # what you're about to publish the The Whole Internet + # and then + git commit -a -m "<put something clever here>" + git push origin asf-site The ASF's gitpubsub mechanism then synchronizes that content to http://sling.apache.org , usually within a few seconds. +It would be nice to automate this in a Jenkins build...patches welcome! + ## TODO Here's a rough list of things that need to be done after the 2017 migration to gitpubsub.
