Skip to content

Instantly share code, notes, and snippets.

@corollari
Created February 27, 2020 10:58
Show Gist options
  • Save corollari/8be6eb3e69a3aa942e3220fd120f1af3 to your computer and use it in GitHub Desktop.
Save corollari/8be6eb3e69a3aa942e3220fd120f1af3 to your computer and use it in GitHub Desktop.
Script to create a new deployment key to deploy to Github Pages via CI
filename=$(date)
ssh-keygen -t rsa -b 4096 -C "$(git config user.email)" -f "$filename" -N ""
cat "$filename.pub"
echo
cat "$filename"
# See https://github.com/marketplace/actions/github-pages-action#%EF%B8%8F-create-ssh-deploy-key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment