From 2fea4c880600d21ef230e3986f8c3744e79a1721 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Fri, 19 Nov 2021 11:39:15 -0500 Subject: [PATCH] Move CI deploy steps conditional to job level --- .github/workflows/ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3409c563..706b1ab3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,13 +61,10 @@ jobs: deploy: needs: test runs-on: ubuntu-latest - env: - DEPLOY_DEMO: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} steps: - - if: ${{ env.DEPLOY_DEMO }} - uses: actions/checkout@v2 - - if: ${{ env.DEPLOY_DEMO }} - name: Deploy demo + - uses: actions/checkout@v2 + - name: Deploy demo uses: akhileshns/heroku-deploy@v3.12.12 with: heroku_api_key: ${{ secrets.HEROKU_API_KEY }}