Skip to content

Commit b10d8ca

Browse files
oschwaldclaude
andcommitted
Remove gh-pages publishing from release script
The release script no longer needs to clone the gh-pages branch and regenerate Jekyll index/mmdblookup pages — the new Hugo workflow on main owns the docs site, and the doc/*.md files are now mounted as content directly. There is no versioned doc tree on gh-pages to preserve for this repo. For STF-448. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 22b0ac2 commit b10d8ca

2 files changed

Lines changed: 0 additions & 44 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/.libs
99
*~
1010
.\#*
11-
.gh-pages
1211
docs/.hugo_build.lock
1312
docs/public/
1413
/INSTALL

dev-bin/release.sh

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -111,45 +111,6 @@ make check
111111
make clean
112112
make safedist
113113

114-
if [ ! -d .gh-pages ]; then
115-
echo "Checking out gh-pages in .gh-pages"
116-
git clone -b gh-pages git@github.com:maxmind/libmaxminddb.git .gh-pages
117-
pushd .gh-pages
118-
else
119-
echo "Updating .gh-pages"
120-
pushd .gh-pages
121-
git pull
122-
fi
123-
124-
if [ -n "$(git status --porcelain)" ]; then
125-
echo ".gh-pages is not clean" >&2
126-
exit 1
127-
fi
128-
129-
index=index.md
130-
cat <<EOF >$index
131-
---
132-
layout: default
133-
title: libmaxminddb - a library for working with MaxMind DB files
134-
version: $version
135-
---
136-
EOF
137-
138-
cat ../doc/libmaxminddb.md >>$index
139-
140-
mmdblookup=mmdblookup.md
141-
cat <<EOF >$mmdblookup
142-
---
143-
layout: default
144-
title: mmdblookup - a utility to look up an IP address in a MaxMind DB file
145-
version: $version
146-
---
147-
EOF
148-
149-
cat ../doc/mmdblookup.md >>$mmdblookup
150-
151-
git commit -m "Updated for $version" -a
152-
153114
read -r -e -p "Push to origin? (y/n) " should_push
154115

155116
if [ "$should_push" != "y" ]; then
@@ -159,8 +120,4 @@ fi
159120

160121
git push
161122

162-
popd
163-
164-
git push
165-
166123
gh release create --target "$(git branch --show-current)" -t "$version" -n "$notes" "$version" "$dist"

0 commit comments

Comments
 (0)