Deploy when pushing to specific branch

I’m trying, via a Workflow, deploy to Heroku whenever we push to our staging and master branch.
Below is a test to poush to our QA (to be safe) when I push to my feature branch “2007m”.
Cant get this to trigger. Any pointers?
build:

deploy:
docker:
- image: buildpack-deps:trusty
steps:
- checkout
- run:
name: Deploy Staging to Heroku
command: |
git push git@heroku.com:qa-marmosetmusic.git $CIRCLE_SHA1:master &&
heroku run --exit-code rake db:migrate --app qa-marmosetmusic &&
heroku restart --app qa-marmosetmusic

workflows:
  version: 2
  build-deploy:
    jobs:
      - build
      - deploy:
          requires:
            - build
          filters:
            branches:
              only: 2007m

(Aside: when presenting YAML, it is best to format the whole thing in a code block for readability. Please edit your post, select the YAML selection, click the code icon </>, and then save. Thanks!)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.