Skip to content

Commit

Permalink
make client depend on server
Browse files Browse the repository at this point in the history
  • Loading branch information
TangoYankee committed Sep 12, 2024
1 parent 6270624 commit 13c13e9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 43 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/production-client.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,41 @@ jobs:
HD_TENANT_ID: ${{secrets.TENANT_ID}}
HD_TOKEN_PATH: ${{secrets.TOKEN_PATH}}
HD_USER_API_KEY: ${{ secrets.USER_API_KEY }}
deploy-client:
name: 🛫 Deploy client
needs: deploy-server
environment:
name: production
url: https://zap.planninglabs.nyc
runs-on: ubuntu-latest
env:
HOST: ${{ vars.ZAP_API_HOST }}
NYCID_CLIENT_ID: ${{ vars.NYCID_CLIENT_ID }}
NYC_ID_HOST: ${{ vars.NYC_ID_HOST }}
MAINTENANCE_START: ${{ vars.MAINTENANCE_START }}
MAINTENANCE_END: ${{ vars.MAINTENANCE_END }}
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: client
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 14.x
- name: Install application dependencies
working-directory: client
run: yarn install --immutable --immutable-cache --check-cache
- name: Build client
working-directory: client
run: yarn run build --environment=production
- name: Install netlify
# Use npm over yarn because yarn was not respecting the exact version of a dependency
run: npm i -g [email protected]
- name: Deploy client to Netlify
run: |
netlify deploy \
--dir client/dist \
--site ${{secrets.NETLIFY_SITE_ID}} \
--auth ${{secrets.NETLIFY_AUTH_TOKEN}} \
--message "${{ github.event.head_commit.message }}"
--prod
2 changes: 1 addition & 1 deletion .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
HD_TOKEN_PATH: ${{secrets.TOKEN_PATH}}
deploy-client:
name: 🛫 Deploy client
needs: deploy-server
environment:
name: staging
url: https://staging--labs-zap.netlify.app
Expand Down Expand Up @@ -80,4 +81,3 @@ jobs:
--site ${{secrets.NETLIFY_SITE_ID}} \
--auth ${{secrets.NETLIFY_AUTH_TOKEN}} \
--message "${{ github.event.head_commit.message }}"
1 change: 1 addition & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
HD_TOKEN_PATH: ${{secrets.TOKEN_PATH}}
deploy-client:
name: 🛫 Deploy client
needs: deploy-server
environment:
name: staging
url: https://staging--labs-zap.netlify.app
Expand Down

0 comments on commit 13c13e9

Please sign in to comment.