Skipping a deployment with the heroku provider because this branch is not permitted

Hello there, I’m new to continuous deployment with Travis and I’m facing a challenge. Every time I push changes to my branch the build is successful but deployment is skipped due to permissions even why I specified it in my .travis.yml file and I cannot seem to figure out why. Please help
Here is the content of the .travis.yml file.

language:node_js
node_js:
- 10
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
directories:
- “./node_modules”
install:
- npm install
script:
- npm run test – --watch=false --no-progress --browsers=ChromeHeadlessNoSandbox
- npm run build
before-deploy:
- cd ./dist
deploy:
provider: heroku
api_key:
secure: <api_key>
app: library-staging
on: continuos-deployment
app: library-production
on: master
notifications:
email: false

I also tried but still got the same error message

deploy:
provider: heroku
api_key:
secure: ‘’
app:
master: library-production
staging: library-staging

When reporting problems, please include relevant build URLs. Thanks.

oh sorry i completely forgot, here is the link https://travis-ci.org/joshtrigger/library/builds/614011548

Indentations on these three lines are probably not what you intended:

Try outdenting one level.

it has worked, thank you so much you’re such a life saver.

1 Like