Skip to content

Commit 0ba87ba

Browse files
authored
CI: Update the doc deploy script to generate CNAME and index.html (#3749)
1 parent 1d50ffb commit 0ba87ba

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci_docs.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,14 @@ jobs:
163163
# to get the right commit hash.
164164
message="Deploy $version from $(git rev-parse --short HEAD)"
165165
cd deploy
166-
# Need to have this file so that GitHub doesn't try to run Jekyll
166+
# Create some files in the root directory.
167+
# .nojekyll: Need to have this file so that GitHub doesn't try to run Jekyll
167168
touch .nojekyll
168-
# Delete all the files and replace with our new set
169+
# CNAME: Set the custom domain name
170+
echo "www.pygmt.org" > CNAME
171+
# index.html: Redirect to the latest version
172+
echo '<meta http-equiv="Refresh" content="0;url=latest/"/>' > index.html
173+
# Delete all the files and replace with our new set
169174
echo -e "\nRemoving old files from previous builds of ${version}:"
170175
rm -rvf ${version}
171176
echo -e "\nCopying HTML files to ${version}:"

0 commit comments

Comments
 (0)