diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml
index 02401ba458..1397867e12 100644
--- a/.github/workflows/production.yml
+++ b/.github/workflows/production.yml
@@ -29,6 +29,7 @@ jobs:
 
       - name: Release Backend on Heroku
         uses: akhileshns/heroku-deploy@e86b991436e126ff9d78399b801a6610a64881c9
+        if: ${ env.PROD_API_DEPLOY_ENABLED == 'true' }
         with:
           heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
           heroku_app_name: mitopen-production
diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml
index 5cd911c80d..aa7b5bf231 100644
--- a/.github/workflows/release-candidate.yml
+++ b/.github/workflows/release-candidate.yml
@@ -29,6 +29,7 @@ jobs:
 
       - name: Release Backend on Heroku
         uses: akhileshns/heroku-deploy@e86b991436e126ff9d78399b801a6610a64881c9
+        if: ${{ env.RC_API_DEPLOY_ENABLED == 'true' }}
         with:
           heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
           heroku_app_name: mitopen-rc