Skip to content

Commit 9466259

Browse files
committed
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 parent cb7c912 commit 9466259

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

ci/srht/update_download_page

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ cd "$SRCTARBALLDIR/ci/srht"
100100
CIDIR="$(pwd)"
101101

102102
cd "$HOME"
103+
104+
# Upload new stdlib autodocs
105+
mkdir -p docs_to_upload/documentation/master/std/
106+
cp "$ZIGDIR/docs/std/index.html" docs_to_upload/documentation/master/std/index.html
107+
cp "$ZIGDIR/docs/std/data.js" docs_to_upload/documentation/master/std/data.js
108+
cp "$ZIGDIR/docs/std/main.js" docs_to_upload/documentation/master/std/main.js
109+
cp "$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+
103112
git clone --depth 1 git@github.com:ziglang/www.ziglang.org.git
104113
cd www.ziglang.org
105114
WWWDIR="$(pwd)"
@@ -108,12 +117,6 @@ $S3CMD put -P --no-mime-magic --add-header="cache-control: public, max-age=31536
108117

109118
cd "$WWWDIR"
110119
cp "$CIDIR/out/index.json" data/releases.json
111-
mkdir -p content/documentation/master/std
112-
cp "$LANGREF" content/documentation/master/index.html
113-
cp "$ZIGDIR/docs/std/index.html" content/documentation/master/std/index.html
114-
cp "$ZIGDIR/docs/std/data.js" content/documentation/master/std/data.js
115-
cp "$ZIGDIR/docs/std/main.js" content/documentation/master/std/main.js
116120
git add data/releases.json
117-
git add content/
118-
git commit -m "CI: update releases and docs"
121+
git commit -m "CI: update releases"
119122
git push origin master

0 commit comments

Comments
 (0)