Skip to content

Commit

Permalink
Move CI deploy steps conditional to job level
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Nov 19, 2021
1 parent 828e9ff commit 2fea4c8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Expand Up @@ -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 }}
Expand Down

0 comments on commit 2fea4c8

Please sign in to comment.