File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -163,9 +163,14 @@ jobs:
163
163
# to get the right commit hash.
164
164
message="Deploy $version from $(git rev-parse --short HEAD)"
165
165
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
167
168
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
169
174
echo -e "\nRemoving old files from previous builds of ${version}:"
170
175
rm -rvf ${version}
171
176
echo -e "\nCopying HTML files to ${version}:"
You can’t perform that action at this time.
0 commit comments