Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create an ecdsa keypair and configure circleci+github for deploying on gh-pages.

Deploy to github pages with circleci

To deploy on github pages via CircleCI you need a brand new keypair.

Follow these steps.

Create a keypair.

The private key goes into this circleci page:

Add the CI_HAS_WRITE_KEY=true environment variable in circleci:

The public key goes into github deploy keys:

The fingerprint goes into the circleci config file:

  • .circleci/config.yml#/jobs/build/steps/[0]/add_ssh_keys/fingerprints/[0]
# Create key pair.
openssl ecparam -name prime256v1 -genkey -noout -out private.pem
ssh-keygen -y -f private.pem > public.pem

# Get the md5 fingerprint
ssh-keygen -l -E md5 -f private.pem 
@ioggstream

This comment has been minimized.

Copy link
Owner Author

ioggstream commented Feb 18, 2020

To create an empty gh-pages branch:

git checkout --orphans=gh-pages
git rm -rf .
touch issues.json pulls.json
git add issues.json pulls.json
git commit -m "initial import"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.