Skip to content

Commit

Permalink
put into seperate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Oct 28, 2024
1 parent 607ad53 commit d91f8d1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-deploy-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ jobs:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Upload to Azure blob storage
shell: bash
if: ${{ env.demo-blob-name == '' }}
run: |
if [ -z "${{ env.demo-blob-name }}" ]; then
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
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
- name: Azure logout
shell: bash
run: |
Expand Down

0 comments on commit d91f8d1

Please sign in to comment.