Skip to content

deploy staging client with netlify cli action #11

deploy staging client with netlify cli action

deploy staging client with netlify cli action #11

Workflow file for this run

name: 🎭 Deploy to staging
on:
push:
branches:
- main
jobs:
deploy-server:
name: 🚀 Deploy server
environment:
name: staging
url: https://zap-api-staging.herokuapp.com
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
sparse-checkout: server
- uses: akhileshns/[email protected]
name: Deploy server to Heroku
with:
heroku_email: ${{secrets.HEROKU_EMAIL}}
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ${{secrets.HEROKU_APP_NAME}}
team: ${{secrets.HEROKU_TEAM}}
appdir: server
env:
HD_AUTHORITY_HOST_URL: ${{secrets.AUTHORITY_HOST_URL}}
HD_CLIENT_ID: ${{secrets.CLIENT_ID}}
HD_CLIENT_SECRET: ${{secrets.CLIENT_SECRET}}
HD_CRM_HOST: ${{secrets.CRM_HOST}}
HD_CRM_SIGNING_SECRET: ${{secrets.CRM_SIGNING_SECRET}}
HD_CRM_URL_PATH: ${{secrets.CRM_URL_PATH}}
HD_GITHUB_ACCESS_TOKEN: ${{secrets.FEEDBACK_GITHUB_ACCESS_TOKEN}}
HD_NYCID_CONSOLE_PASSWORD: ${{secrets.NYCID_CONSOLE_PASSWORD}}
HD_RECAPTCHA_SECRET_KEY: ${{secrets.RECAPTCHA_SECRET_KEY}}
HD_RECAPTCHA_SITE_KEY: ${{secrets.RECAPTCHA_SITE_KEY}}
HD_TENANT_ID: ${{secrets.TENANT_ID}}
HD_TOKEN_PATH: ${{secrets.TOKEN_PATH}}
HD_ADO_PRINCIPAL: ${{secrets.ADO_PRINCIPAL}}
HD_CRM_ADMIN_SERVICE_USER: ${{secrets.CRM_ADMIN_SERVICE_USER}}
HD_SHAREPOINT_CLIENT_ID: ${{secrets.SHAREPOINT_CLIENT_ID}}
HD_SHAREPOINT_CLIENT_SECRET: ${{secrets.SHAREPOINT_CLIENT_SECRET}}
HD_SHAREPOINT_SITE_ID: ${{secrets.SHAREPOINT_SITE_ID}}
HD_SHAREPOINT_CRM_SITE: ${{secrets.SHAREPOINT_CRM_SITE}}
HD_SHAREPOINT_TARGET_HOST: ${{secrets.SHAREPOINT_TARGET_HOST}}
deploy-client:
name: 🛫 Deploy client
environment:
name: staging
url: https://zap-staging.planninglabs.nyc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
sparse-checkout: client
- name: Deploy client to Netlify
uses: netlify/actions/cli@master
with:
args: deploy --build --alias=staging-action --dir=client
env:
NETLIFY_SITE_ID: ${{secrets.NETLIFY_SITE_ID}}
NETLIFY_AUTH_TOKEN: ${{secrets.NETLIFY_AUTH_TOKEN}}
HOST: ${{secrets.ZAP_API_HOST}}
NYCID_CLIENT_ID: ${{secrets.NYCID_CLIENT_ID}}
NYC_ID_HOST: ${{secrets.NYC_ID_HOST}}
MAINTENANCE_START: ${{secrets.MAINTENANCE_START}}
MAINTENANCE_END: ${{secrets.MAINTENANCE_END}}