Navigate to Settings -> Secrets -> Actions add SSH Private key and name it as SSH_DEPLOY_KEY
Navigate to Settings -> Deploy keys add SSH public key and mark Allow write access
Create automation workflow file
Create .github/workflows/main.yml, copy it to your main.yml and change repository and Git configuration. When it’s done, every time you push your new changes to Github,GitHub Actions will automatically deploy your hero website.
-name:SetupGit run:| git config --global user.name "Example" # Change it Based on your environment git config --global user.email "email@example.com" # Change it Based on your environment