Skip to content

Commit

Permalink
[7.0.0] Set the content type on the release notes HTML files. (bazelb…
Browse files Browse the repository at this point in the history
…uild#20079)

Fixes
[bazelbuild#1764](bazelbuild/continuous-integration#1764).
(Except for already published files, which I'll write a separate script
to retroactively fix.)

Closes bazelbuild#19955.

Commit
bazelbuild@6747679

PiperOrigin-RevId: 579182298
Change-Id: Id8dbafbf532d0b82e721edc31837a7870ec4a900

Co-authored-by: Tiago Quelhas <tjgq@google.com>
  • Loading branch information
bazel-io and tjgq authored Nov 7, 2023
1 parent c37e411 commit 5edda56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ function release_to_gcs() {
fi
create_index_html "${artifact_dir}" > "${artifact_dir}/index.html"
gsutil -m cp "${artifact_dir}/**" "gs://bazel/${release_path}"
# Set the content type on index.html so it isn't autodetected incorrectly by the browser.
gsutil setmeta -h "Content-Type: text/html; charset=utf-8" "gs://bazel/${release_path}/index.html"
fi
}

Expand Down

0 comments on commit 5edda56

Please sign in to comment.