Skip to content

Commit 38ac518

Browse files
authored
Merge pull request #37300 from gsmet/automated-releases
Prepare docs/sync-web-site.sh for automated releases
2 parents 3669523 + 37fefb3 commit 38ac518

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/sync-web-site.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ if [ -z $TARGET_DIR ]; then
3636
if [[ "$QUARKUS_WEB_SITE_PUSH" != "true" ]]; then
3737
GIT_OPTIONS="--depth=1"
3838
fi
39-
git clone -b develop --single-branch $GIT_OPTIONS git@github.com:quarkusio/quarkusio.github.io.git ${TARGET_DIR}
39+
if [ -n "${RELEASE_GITHUB_TOKEN}" ]; then
40+
git clone -b develop --single-branch $GIT_OPTIONS https://${RELEASE_GITHUB_TOKEN}:@github.com/quarkusio/quarkusio.github.io.git ${TARGET_DIR}
41+
else
42+
git clone -b develop --single-branch $GIT_OPTIONS git@github.com:quarkusio/quarkusio.github.io.git ${TARGET_DIR}
43+
fi
4044
fi
4145

4246
if [ $BRANCH == "main" ] && [ "$QUARKUS_RELEASE" == "true" ]; then

0 commit comments

Comments
 (0)