groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy-website] branch asf-site updated: prepare for auto updating of dev site
Date Wed, 06 Nov 2019 02:05:25 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new f281ec5  prepare for auto updating of dev site
f281ec5 is described below

commit f281ec57830c9abdd121d945b188da081ee1ea0f
Author: Paul King <paulk@asert.com.au>
AuthorDate: Wed Nov 6 12:05:12 2019 +1000

    prepare for auto updating of dev site
---
 site-dev/build.gradle | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/site-dev/build.gradle b/site-dev/build.gradle
index 1271c25..7d6cb84 100644
--- a/site-dev/build.gradle
+++ b/site-dev/build.gradle
@@ -156,11 +156,11 @@ task commitWebsite(dependsOn: webzip) {
         def latestCommit = gitin.log(maxCommits: 1)[0].abbreviatedId
 
         def gitout
-        if (!project.hasProperty('skipClone')) {
+        if (project.hasProperty('skipClone')) {
+            gitout = grgit.open(dir: stagingDevSite)
+        } else {
             println "Cloning $gitboxUrl to $stagingDevSite. This may take a few minutes ..."
             gitout = grgit.clone(dir: stagingDevSite, uri: gitboxUrl)
-        } else {
-            gitout = grgit.open(dir: stagingDevSite)
         }
 
         gitout.checkout(branch: 'asf-site')
@@ -218,6 +218,6 @@ task publishWebsite(dependsOn: commitWebsite) {
         }
 
         // Because git.push() fails to authenticate, run git push directly.
-        shell "git push ${gitboxUrl} asf-site"
+        shell "git push asf-site"
     }
 }


Mime
View raw message