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 d91f8d1 commit 0a0ac4b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build-deploy-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Install NPM packages
run: npm ci
- name: Build project
run: VITE_API_URL='https://reportvision-ocr-${{ env.deploy-env }}.azurewebsites.net/' npm run build
run: VITE_API_URL='https://reportvision-ocr-dev4.azurewebsites.net/' npm run build
- name: Run unit tests
run: npm run test
- name: Create client build archive
Expand Down Expand Up @@ -87,14 +87,12 @@ jobs:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Upload to Azure blob storage
shell: bash
if: ${{ env.demo-blob-name == '' }}
run: |
az storage blob upload-batch --account-name reportvisionfrontend${{ env.deploy-env }} -d '$web' -s client-build/ --overwrite
- name: Upload to Azure blob storage
shell: bash
if: ${{ env.demo-blob-name != '' }}
run: |
az storage blob upload-batch --account-name ${{ env.demo-blob-name }} -d '$web' -s client-build/ --overwrite
if [ -z "${{ env.demo-blob-name }}" ]; then
az storage blob upload-batch --account-name reportvisionfrontenddev4 -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
- name: Azure logout
shell: bash
run: |
Expand Down

0 comments on commit 0a0ac4b

Please sign in to comment.