From 70e5eb7b5eebb4c1f3ae92611e054be9f4af9170 Mon Sep 17 00:00:00 2001 From: tangoyankee Date: Mon, 26 Aug 2024 12:38:37 -0400 Subject: [PATCH] Deploy to production Configure a workflow to deploy to production on dispatch closes #94 --- .github/workflows/production.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/production.yml diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml new file mode 100644 index 0000000..5833786 --- /dev/null +++ b/.github/workflows/production.yml @@ -0,0 +1,22 @@ +name: 🌠 Deploy to production + +on: workflow_dispatch + +jobs: + deploy: + name: 🚀 Deploy + environment: + name: production-cp-map + url: https://capitalplanning.nycplanningdigital.com + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Deploy to Heroku + uses: akhileshns/heroku-deploy@v3.13.15 + with: + heroku_email: ${{secrets.HEROKU_EMAIL}} + heroku_api_key: ${{secrets.HEROKU_API_KEY}} + heroku_app_name: ${{secrets.HEROKU_APP_NAME}} + team: ${{secrets.HEROKU_TEAM}} + env: + HD_VITE_ZONING_API_URL: ${{secrets.VITE_ZONING_API_URL}}