From 4b884fd030c832ad019da7e4982c0f9a7184ecd9 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sun, 7 Nov 2021 13:53:58 -0800 Subject: [PATCH] Add a demo deploy step to CI --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 925e8f13..bab11f48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,3 +59,18 @@ jobs: with: github-token: ${{ secrets.github_token }} parallel-finished: true + deploy: + needs: test + runs-on: ubuntu-latest + env: + DEPLOY_DEMO: ${{ 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: akhileshns/heroku-deploy@v3.12.12 + with: + heroku_api_key: ${{ secrets.HEROKU_API_KEY }} + heroku_app_name: ${{ secrets.HEROKU_APP_NAME }} + heroku_email: ${{ secrets.HEROKU_EMAIL }}