diff --git a/deploy.sh b/deploy.sh index c1467c6..408a9aa 100755 --- a/deploy.sh +++ b/deploy.sh @@ -12,7 +12,7 @@ GIT_REMOTE="https://$GIT_SERVER_HOST/$GITHUB_REPOSITORY" GITHUB_REPOSITORY_AUTHOR=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f1) GITHUB_REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f2) -PAGES_HOSTNAME="$DEPLOY_BRANCH.$GITHUB_REPOSITORY_NAME.$GITHUB_REPOSITORY_AUTHOR.theclashfruit.page" +PAGES_HOSTNAME="$GITHUB_REPOSITORY_NAME.$GITHUB_REPOSITORY_AUTHOR.theclashfruit.page" # Move to temp TMP_DIR=$(mktemp -d) @@ -44,4 +44,6 @@ git commit -m "Deployed $COMMIT_ID to Pages. ($PAGES_HOSTNAME)" git remote set-url origin "https://$GITHUB_ACTOR:$GITHUB_TOKEN@$GIT_SERVER_HOST/$GITHUB_REPOSITORY.git" git push --force origin "$DEPLOY_BRANCH:$DEPLOY_BRANCH" -curl -sL -H 'cache-control: no-cache' "https://$PAGES_HOSTNAME" > /dev/null \ No newline at end of file +curl -sL -H 'cache-control: no-cache' "https://$PAGES_HOSTNAME" > /dev/null + +exit 0