ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [01/30] incubator-ariatosca-website git commit: Automatic Site Publish by Buildbot
Date Wed, 06 Sep 2017 18:47:49 GMT
Repository: incubator-ariatosca-website
Updated Branches:
  refs/heads/asf-site 46c2f0cec -> 2010eb8e1


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca-website/blob/2010eb8e/build_site.sh
----------------------------------------------------------------------
diff --git a/build_site.sh b/build_site.sh
index ce449f0..d98f6d8 100755
--- a/build_site.sh
+++ b/build_site.sh
@@ -11,6 +11,19 @@ export PATH=${GEM_HOME}/bin:$PATH
 bundle install --path ${GEM_HOME}
 bundle
 bundle exec jekyll build --destination $WORKDIR
+
+# Set env for docs
+ARIAVERSION=0.1.1
+DISTPATH=https://dist.apache.org/repos/dist/dev/incubator/ariatosca/$ARIAVERSION-incubating/sdist/apache-ariatosca-$ARIAVERSION.tar.gz
+DISTFILE=apache-ariatosca-$ARIAVERSION.tar.gz
+
+# Copy docs into _site
+wget -P $WORKDIR $DISTPATH
+tar -C $WORKDIR -xzf $WORKDIR/$DISTFILE apache-ariatosca-$ARIAVERSION/docs
+mkdir -p $WORKDIR/_site/docs
+mv $WORKDIR/apache-ariatosca-$ARIAVERSION/docs $WORKDIR/_site/
+rm -f $WORKDIR/$DISTFILE
+
 git checkout asf-site
 git clean -f -d
 git pull origin asf-site


Mime
View raw message