How to use GitHub actions to connect azure secured VPN Vm to deploy the code

I have one Azure virtual machine in a VPN, which required to connect VPN first to use it,
I have one workflows to deploy the code on this VM, but I m not sure how I will connect the VPN under workflow and will deploy the code.
Recently, I have written the workflow to deploy the code on the same VM but now it is secured by VPN.