Skip to content

Instantly share code, notes, and snippets.

@Deborah-Digges
Created September 25, 2020 21:15
Show Gist options
  • Save Deborah-Digges/44d2a769ebcce2b482e6a9e702f18065 to your computer and use it in GitHub Desktop.
Save Deborah-Digges/44d2a769ebcce2b482e6a9e702f18065 to your computer and use it in GitHub Desktop.
manual-deploy
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