Created
September 25, 2020 21:15
-
-
Save Deborah-Digges/44d2a769ebcce2b482e6a9e702f18065 to your computer and use it in GitHub Desktop.
manual-deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout -b gh-pages | |
gatsby build | |
# Temporarily move the public folder | |
mv public /tmp | |
# Remove all other files | |
rm -r * | |
# Move the contents of the public folder back to the root of the directory | |
cp -r /tmp/public/* . | |
git commit -m "Release new version of blog" | |
git push origin gh-pages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment