From 47b18161b53440e0726fd04ef53418fd5c0da90c Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 3 Sep 2023 13:58:19 -0400 Subject: [PATCH] chore: remove preview scripts Signed-off-by: Rui Chen --- .scripts/build-preview.sh | 16 ---------------- .scripts/preview-publish.sh | 19 ------------------- 2 files changed, 35 deletions(-) delete mode 100755 .scripts/build-preview.sh delete mode 100755 .scripts/preview-publish.sh diff --git a/.scripts/build-preview.sh b/.scripts/build-preview.sh deleted file mode 100755 index 36db4f77..00000000 --- a/.scripts/build-preview.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -(cd ../wiremock.org-preview && git reset --hard origin/gh-pages) - -bundle exec jekyll build --config '_config.yml,_config_preview.yml' -cp -rf _site/* ../wiremock.org-preview/ - -# Add the git hash -git rev-parse HEAD > ../wiremock.org-preview/assets/version.txt - -pushd ../wiremock.org-preview -rm -f *.sh -echo 'private-preview.wiremock.org' > CNAME -popd diff --git a/.scripts/preview-publish.sh b/.scripts/preview-publish.sh deleted file mode 100755 index c66c8e14..00000000 --- a/.scripts/preview-publish.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -(cd ../wiremock.org-preview && git pull origin gh-pages) - -bundle exec jekyll build --config '_config.yml,_config_preview.yml' -cp -rf _site/* ../wiremock.org-preview/ - -# Add the git hash -git rev-parse HEAD > ../wiremock.org-preview/assets/version.txt - -pushd ../wiremock.org-preview -rm -f *.sh -echo 'private-preview.wiremock.org' > CNAME -git add --all -git commit -m "Updated docs" -git push origin gh-pages -popd