Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Oct 28, 2024
1 parent a019302 commit 62ccda7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-deploy-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ env:
deploy-env: dev3

permissions:
contents: read
packages: write
attestations: write
id-token: write
contents: read

jobs:
build:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 62ccda7

Please sign in to comment.