From 62ccda7acf2fc3de1d5cbaa893145ad8ecce534b Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 28 Oct 2024 17:35:48 -0600 Subject: [PATCH] wip --- .github/workflows/build-deploy-frontend.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-deploy-frontend.yml b/.github/workflows/build-deploy-frontend.yml index 8d848cd1..a243a809 100644 --- a/.github/workflows/build-deploy-frontend.yml +++ b/.github/workflows/build-deploy-frontend.yml @@ -26,10 +26,8 @@ env: deploy-env: dev3 permissions: - contents: read - packages: write - attestations: write id-token: write + contents: read jobs: build: @@ -49,7 +47,7 @@ jobs: - name: Install NPM packages run: npm ci - name: Build project - run: VITE_API_URL='https://reportvision-ocr-dev3.azurewebsites.net/' npm run build + run: VITE_API_URL='https://reportvision-ocr-${{ env.deploy-env }}.azurewebsites.net/' npm run build - name: Run unit tests run: npm run test - name: Create client build archive @@ -91,7 +89,7 @@ jobs: shell: bash run: | if [ -z "${{ env.demo-blob-name }}" ]; then - az storage blob upload-batch --account-name reportvisionfrontenddev3 -d '$web' -s client-build/ --overwrite + az storage blob upload-batch --account-name reportvisionfrontend${{ env.deploy-env }} -d '$web' -s client-build/ --overwrite else az storage blob upload-batch --account-name ${{ env.demo-blob-name }} -d '$web' -s client-build/ --overwrite fi