Repository for shared nequip GitHub actions workflows
This repo contains a GitHub Actions reusable "Composite Action" to clone private repos. The workflow automatically checks out main or develop depending on what branch the tests are running on.
Important
The secrets (like NEQUIP_KEY) must be Base64 encoded SSH private key files. In other words, if the file still starts with something like -----BEGIN OPENSSH PRIVATE KEY----- then you still need to encode it.
You can Base64 encode on the command line on Mac using OpenSSL.
Note that the secrets have to be defined on the repo where the workflow is being called from.
- Generate SSH keypair, e.g.
ssh-keygen -t ed25519 -C "gha-nequip-extension" -f nequip-extension-gha -N ""
-
Add public key to
nequip-privatethrough "Deploy keys" -
Base64-encode private key
base64 -w 0 nequip-extension-gha
- Add the base64-encoded private key as a GitHub Actions secret to the new extension package.