Use github actions to add deploy key to repo


I’m trying to find out if it’s possible to add a deploy key with github actions. I have already generates key with ssh-keygen and tried to add it manually which works. But i would like to add my generates key with github actions as well. Anyone who has an idea on how to do this? :slight_smile:

Best Regards
Harri Seppänen

EDIT: In other words I want to do this “github → repo → settings → deploy keys → add deploy key (the generated key during workflow)” but I want to do it with github actions if it’s possible.

1 Like