From eb125310766cbd3243e1cb9c26a6c1e11ade7365 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 1 Sep 2019 00:57:52 +0200 Subject: [PATCH] Fix refs --- .gitignore | 2 ++ entrypoint.sh | 10 +--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 7e49040..81da0ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ # Jetbrains /.idea /*.iml + +/public diff --git a/entrypoint.sh b/entrypoint.sh index a322476..18e169e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,17 +19,9 @@ cd "$BUILD_DIR" git init git config user.name "${GITHUB_ACTOR}" git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" - -if [ -z "$(git status --porcelain)" ]; then - echo "⚠️ Nothing to publish" - exit 0 -fi - -git remote rm origin > /dev/null 2>&1 || true -git remote add origin "${REPO}" git add . git commit --allow-empty -m 'Deploy to GitHub pages' -git push --force --quiet "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$TARGET_BRANCH" +git push --force --quiet "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "master:$TARGET_BRANCH" rm -rf .git cd "$GITHUB_WORKSPACE"