Skip to content

Commit 9899d3d

Browse files
committed
Allow non-shh auth when deploying
This requires that both the GITHUB_USER and the GITHUB_PERSONAL_ACCESS_TOKEN environment variables are set
1 parent 912b9f7 commit 9899d3d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/deploy.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ BUILD_FOLDER=".build"
1212
rm -rf "$BUILD_FOLDER"
1313

1414
# Checkout the current repo
15-
git clone -b master [email protected]:nodeschool/nodeschool.github.io.git .build
15+
if [[ -z $GITHUB_PERSONAL_ACCESS_TOKEN ]]
16+
then
17+
git clone -b master [email protected]:nodeschool/nodeschool.github.io.git .build
18+
else
19+
git clone -b master https://$GITHUB_USER:$GITHUB_PERSONAL_ACCESS_TOKEN@github.com/nodeschool/nodeschool.github.io.git .build
20+
fi
1621

1722
npm run build
1823

0 commit comments

Comments
 (0)