Thank you very much @Gabor , I have tried following the examples but still I am still unable to deploy the app. Please should I pass in my rsconnect login i.e. name='myname', token='mytoken' and secret='mysecret' in on the github secret as a string. That part is still not clear to me. I guess that is why I am getting the error from. Thank you very much for your help on this!!!
In the "Name" field you write RSCONNECT_USER and then use your username in the "Secret" field. Similarly, you create secrets for RSCONNECT_TOKEN and RSCONNECT_SECRET.
Plus you add your app name and account name to the workflow file itself.