authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-08-06 18:12:21+02:00
committergravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-08-06 18:12:21+02:00
log94662591d617226caabcb6c7319d703f1e41a880
treef381658c0eb23f7ffc1a9db40664858a409949da
parentcb7c912a1b0957c6ade28452d92d6aef95bf07ac

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

1 files changed, 10 insertions(+), 7 deletions(-)

ci/srht/update_download_page+10-7
......@@ -100,6 +100,15 @@ cd "$SRCTARBALLDIR/ci/srht"
100100CIDIR="$(pwd)"
101101
102102cd "$HOME"
103
104# Upload new stdlib autodocs
105mkdir -p docs_to_upload/documentation/master/std/
106cp "$ZIGDIR/docs/std/index.html" docs_to_upload/documentation/master/std/index.html
107cp "$ZIGDIR/docs/std/data.js" docs_to_upload/documentation/master/std/data.js
108cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js
109cp "$LANGREF" docs_to_upload/documentation/master/index.html
110$S3CMD put -P --no-mime-magic --recursive --add-header="Cache-Control: max-age=0, must-revalidate" "docs_to_upload/" s3://ziglang.org/
111
103112git clone --depth 1 git@github.com:ziglang/www.ziglang.org.git
104113cd www.ziglang.org
105114WWWDIR="$(pwd)"
......@@ -108,12 +117,6 @@ $S3CMD put -P --no-mime-magic --add-header="cache-control: public, max-age=31536
108117
109118cd "$WWWDIR"
110119cp "$CIDIR/out/index.json" data/releases.json
111mkdir -p content/documentation/master/std
112cp "$LANGREF" content/documentation/master/index.html
113cp "$ZIGDIR/docs/std/index.html" content/documentation/master/std/index.html
114cp "$ZIGDIR/docs/std/data.js" content/documentation/master/std/data.js
115cp "$ZIGDIR/docs/std/main.js" content/documentation/master/std/main.js
116120git add data/releases.json
117git add content/
118git commit -m "CI: update releases and docs"
121git commit -m "CI: update releases"
119122git push origin master