Skip to content

Commit

Permalink
Revert "Merge pull request rehanhaider#4 from askpatrickw/fix-output-…
Browse files Browse the repository at this point in the history
…folder"

This reverts commit 26da5de, reversing
changes made to 8339a6c.
  • Loading branch information
bobobo80 committed Feb 21, 2023
1 parent c7a9ea9 commit 38343af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ if [ -n "$PELICAN_THEME_FOLDER" ]; then
fi

echo 'Building site 👷 '
pelican ${PELICAN_CONTENT_FOLDER:=content} -s ${PELICAN_CONFIG_FILE:=publishconf.py}
pelican ${PELICAN_CONTENT_FOLDER:=content} -o output -s ${PELICAN_CONFIG_FILE:=publishconf.py}

echo 'Publishing to GitHub Pages 📤 '
git config --global --add safe.directory /github/workspace
pushd output
git init
git remote add deploy "$remote_repo"
git checkout $remote_branch || git checkout --orphan $remote_branch
Expand All @@ -38,5 +39,6 @@ echo -n 'Files to Commit:' && ls -l | wc -l
git commit -m "[ci skip] Automated deployment to GitHub Pages on $(date +%s%3N)"
git push deploy $remote_branch --force
rm -fr .git
popd

echo 'Successfully 🎉🕺💃 🎉 deployed to interwebs 🕸'

0 comments on commit 38343af

Please sign in to comment.