You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2022/03/30 10:35:21 UTC
[libcloud-site] 02/02: Update readme, stage script.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/libcloud-site.git
commit fe2aeac7ae9e18350c7d9b69ec37393b03aeb0e4
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Wed Mar 30 12:30:20 2022 +0200
Update readme, stage script.
---
README.md | 8 +++++++-
scripts/stage-changes.sh | 3 +++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 95340d3..7d95165 100644
--- a/README.md
+++ b/README.md
@@ -66,9 +66,15 @@ This will start Docker container with local development server listening on port
./scripts/docker-build-site.sh
# Non-Docker versions
#./scripts/docker-build-site.sh
-./scripts/stage-changes.sh
+./scripts/stage-changes.sh {prod,staging}
git push origin <branch>
```
+## Branches Layout
+
+* ``master`` - Contains website source code without the generated content.
+* ``asf-site`` - Contains generated website content for production environment.
+* ``asf-staging`` - Contains generated website content for staging environment.
+
[1]: http://jekyllrb.com/
[2]: https://github.com/Kami/kami.github.com
diff --git a/scripts/stage-changes.sh b/scripts/stage-changes.sh
index ed18b03..d19a7eb 100755
--- a/scripts/stage-changes.sh
+++ b/scripts/stage-changes.sh
@@ -1,3 +1,6 @@
#!/usr/bin/env bash
+set -e
+DESTINATION_BRANCH=$1
+git checkout "${DESTINATION_BRANCH}"
git add output
git commit -m "Re-generate website."