File character error on deploying to azure webapp using github actions

Hello! I am using github actions to create an artifact from my code, and deploy it to azure web app using azure/webapps-deploy@v2. I am running into the following error again and again -

The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Failed to deploy web package to App Service.

Deployment Failed with Error: Package deployment using ZIP Deploy failed. Refer logs for more details.

I am using the github runner windows-latest, and I have already set the value of LongPathsEnabled to 1 in registry. Any help on how to resolve this error would be appreciated!