Skip to content

Commit

Permalink
debugging github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iandennismiller committed Sep 22, 2023
1 parent fa5183e commit afa30a3
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/jekyll-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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!'

0 comments on commit afa30a3

Please sign in to comment.