I have created an Amazon Alexa Skill and I have also added ask-cli support to it. When I was trying to deploy it using ask-cli an error came i.e.
/bin/sh: 1: hooks/pre_deploy_hook.sh: Permission denied
[Error]: Hook Scripts failed
Then, I opened Powershell as administrator and run the following command:
Set-ExecutionPolicy Unrestricted
After that I successfully deployed the skill from my system. Then I uploaded my project at gitlab and want to deploy it from gitlab CI/CD whenever a commit occurs in master branch. But it's showing the same hook script error. Then, I changed my .gitlab-ci.yml file for just changing the policy and not deploying the skill. Then again an error occurred.
Now, I want to deploy my skill throught gitlab ci/cd whenever a commit occurs in master branch and for that I need to set Exection Policy to Unrestricted. Please tell me how can do that.