From 94662591d617226caabcb6c7319d703f1e41a880 Mon Sep 17 00:00:00 2001 From: Loris Cro Date: Sat, 6 Aug 2022 18:12:21 +0200 Subject: [PATCH] ci: upload langref and stdlib docs directly to s3 previously we were delegating that job to the website CI but it caused the website repo to bloat, so now we only commit releases.json --- ci/srht/update_download_page | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/ci/srht/update_download_page b/ci/srht/update_download_page index f064712d4e..5c007b6986 100755 --- a/ci/srht/update_download_page +++ b/ci/srht/update_download_page @@ -100,6 +100,15 @@ cd "$SRCTARBALLDIR/ci/srht" CIDIR="$(pwd)" cd "$HOME" + +# Upload new stdlib autodocs +mkdir -p docs_to_upload/documentation/master/std/ +cp "$ZIGDIR/docs/std/index.html" docs_to_upload/documentation/master/std/index.html +cp "$ZIGDIR/docs/std/data.js" docs_to_upload/documentation/master/std/data.js +cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js +cp "$LANGREF" docs_to_upload/documentation/master/index.html +$S3CMD put -P --no-mime-magic --recursive --add-header="Cache-Control: max-age=0, must-revalidate" "docs_to_upload/" s3://ziglang.org/ + git clone --depth 1 git@github.com:ziglang/www.ziglang.org.git cd www.ziglang.org WWWDIR="$(pwd)" @@ -108,12 +117,6 @@ $S3CMD put -P --no-mime-magic --add-header="cache-control: public, max-age=31536 cd "$WWWDIR" cp "$CIDIR/out/index.json" data/releases.json -mkdir -p content/documentation/master/std -cp "$LANGREF" content/documentation/master/index.html -cp "$ZIGDIR/docs/std/index.html" content/documentation/master/std/index.html -cp "$ZIGDIR/docs/std/data.js" content/documentation/master/std/data.js -cp "$ZIGDIR/docs/std/main.js" content/documentation/master/std/main.js git add data/releases.json -git add content/ -git commit -m "CI: update releases and docs" +git commit -m "CI: update releases" git push origin master