CircleCI + Gradle + Heroky deployment

Hey, guys.
I’m trying to provide a continuous deployment with Gradle and Heroky but for some reason the deployment step is not running.

I’ve already updated the circle ci with the Heroku key.

version: 2
jobs:
  build:
    docker:
      - image: circleci/openjdk:8-jdk

    working_directory: ~/repo

    environment:
      JVM_OPTS: -Xmx3200m
      TERM: dumb
    
    steps:
      - checkout

      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "build.gradle" }}
          - v1-dependencies-

      - run: gradle dependencies

      - save_cache:
          paths:
            - ~/.m2
          key: v1-dependencies-{{ checksum "build.gradle" }}
        
      # run tests!
      - run: gradle test

deployment:
  staging:
    branch: master

    heroku:
      appname: my-heroku-app

Could you guys help me, please? Is the deployment step in the right place?

1 Like