From afa30a3ab8a509dac148ecfce2f9210d0f07d583 Mon Sep 17 00:00:00 2001 From: Ian Dennis Miller Date: Thu, 21 Sep 2023 20:33:06 -0400 Subject: [PATCH] debugging github actions --- .github/workflows/jekyll-docker.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/jekyll-docker.yml b/.github/workflows/jekyll-docker.yml index 2044535..2b6b5af 100644 --- a/.github/workflows/jekyll-docker.yml +++ b/.github/workflows/jekyll-docker.yml @@ -24,17 +24,12 @@ jobs: -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ iandennismiller/jekyll:latest \ /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future" && \ - cd ${{ github.workspace }}/_site && \ - remote_repo="https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && \ - remote_branch="gh-pages" && \ - git init -b gh-pages && \ - git config user.name "${GITHUB_ACTOR}" && \ - git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \ - git add . && \ - echo -n 'Files to Commit:' && ls -l | wc -l && \ - git commit -m'action build' > /dev/null 2>&1 && \ - git push --force $remote_repo main:$remote_branch > /dev/null 2>&1 && \ - rm -fr .git && \ + git clone "https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" -b gh-pages _gh-pages && \ + rsync -av --delete --checksum --exclude .git _site/ _gh-pages/ && \ + cd _gh-pages && \ + git add -A && \ + git commit -am "automatic publish" && \ + git push cd ../ echo '👍 GREAT SUCCESS!'