Template python repo. Use this template for repos that contain jupyter notebooks.
In order for the notebook automation workflow (inside of .github folder) to work when you protect the main branch (see rulesets), you'll need to use the deploy keys approach detailed in this release-workflow-example (note that we've chosen a different name for the secret - ACTIONS_BOT_KEY).
To create and use a deploy key:
- On your local machine run
ssh-keygen -t ed25519 -C "[email protected]" -f key -N "" - Go to settings in the repo, find
Deploy keysinSecurity - Create a new key called
Github Actions, paste in the public key from the result of runningssh-keygen, selectAllow write access - Go to settings in the repo, find
ActionsinSecret and variablesinside ofSecurity - Create a
Repository secretwith the nameACTIONS_BOT_KEY(the name has to be exactly thiss), paste in the private key from the result of runningssh-keygen.