Skip to content

Commit

Permalink
Added team scope to deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
ncgreene committed Oct 13, 2023
1 parent 9043e04 commit d5356df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ jobs:
- name: Install Vercel CLI
run: pnpm install --global vercel@latest
- name: Pull Vercel Environment Information
run: cd ${{ env.PACKAGE_LOCATION }} && vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
run: cd ${{ env.PACKAGE_LOCATION }} && vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} --scope ottehr
- name: Build Project Artifacts
run: cd ${{ env.PACKAGE_LOCATION }} && vercel build --token=${{ secrets.VERCEL_TOKEN }}
run: cd ${{ env.PACKAGE_LOCATION }} && vercel build --token=${{ secrets.VERCEL_TOKEN }} --scope ottehr

- name: Create secrets file from github secrets
id: create-json
Expand Down Expand Up @@ -106,8 +106,8 @@ jobs:

- name: Deploy app
run: |
url="$(cd ${{ env.PACKAGE_LOCATION }} && vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})"
cd ${{ env.PACKAGE_LOCATION }} && vercel alias --token=${{ secrets.VERCEL_TOKEN }} set "$url" ${{ github.event.inputs.environment }}.ottehr.com
url="$(cd ${{ env.PACKAGE_LOCATION }} && vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})" --scope ottehr
cd ${{ env.PACKAGE_LOCATION }} && vercel alias --token=${{ secrets.VERCEL_TOKEN }} --scope ottehr set "$url" ${{ github.event.inputs.environment }}.ottehr.com
- name: Setup zapehr secrets
run: cd ${{ env.ZAMBDAS_LOCATION }} && pnpm run setup-zapehr-secrets ${{ github.event.inputs.environment }}
- name: Deploy zambdas
Expand Down

0 comments on commit d5356df

Please sign in to comment.