[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] 02/02: CI: only publish docs if on master branch
From: |
gnunet |
Subject: |
[taler-docs] 02/02: CI: only publish docs if on master branch |
Date: |
Wed, 06 Dec 2023 17:21:25 +0100 |
This is an automated email from the git hooks/post-receive script.
devan-carpenter pushed a commit to branch master
in repository docs.
commit 24933224bc54cae635d1a6096b95c7a2b5fee196
Author: Devan Carpenter <devan@taler.net>
AuthorDate: Wed Dec 6 11:17:03 2023 -0500
CI: only publish docs if on master branch
---
contrib/ci/jobs/0-build/build-docs.sh | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/contrib/ci/jobs/0-build/build-docs.sh
b/contrib/ci/jobs/0-build/build-docs.sh
index 938a9a35..43152df9 100755
--- a/contrib/ci/jobs/0-build/build-docs.sh
+++ b/contrib/ci/jobs/0-build/build-docs.sh
@@ -5,10 +5,13 @@ set -exou
make html
make latexpdf
-rm -rf /artifacts/docs_build
-
-mkdir -p /artifacts/docs_build/docs/html/
-mkdir -p /artifacts/docs_build/docs/pdf/
-
-cp -r _build/html/* /artifacts/docs_build/docs/html/
-cp -r _build/latex/*.pdf /artifacts/docs_build/docs/pdf/
+# Publish to docs.taler.net if on master branch
+if [[ ${CI_GIT_BRANCH} = "master" ]]; then
+ rm -rf /artifacts/docs_build
+
+ mkdir -p /artifacts/docs_build/docs/html/
+ mkdir -p /artifacts/docs_build/docs/pdf/
+
+ cp -r _build/html/* /artifacts/docs_build/docs/html/
+ cp -r _build/latex/*.pdf /artifacts/docs_build/docs/pdf/
+fi
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.