Skip to content

Commit cae17db

Browse files
committed
chore: update Azure storage upload steps to use sync and update-batch commands
1 parent 8761567 commit cae17db

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/deployAzureStorage.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,22 @@ jobs:
2525
- name: Build WASM
2626
run: dotnet publish ./src/cv -c Release -o ./publish
2727

28-
- name: Upload to blob storage
28+
- name: Sync to blob storage
2929
uses: azure/CLI@v1
3030
with:
3131
inlineScript: |
32-
az storage blob upload-batch --connection-string "${{ secrets.AZURE_STORAGE_ACCOUNT_CONNECTION_STRING }}" -d '$web' -s ./publish/wwwroot --overwrite=true
32+
az storage blob sync \
33+
--connection-string "${{ secrets.AZURE_STORAGE_ACCOUNT_CONNECTION_STRING }}" \
34+
-c '$web' \
35+
-s ./publish/wwwroot
3336
34-
- name: Upload GZIP files to blob storage
37+
- name: az storage blob sync --connection-string "${{ secrets.AZURE_STORAGE_ACCOUNT_CONNECTION_STRING }}" -c '$web' -s ./publish/wwwroot
3538
uses: azure/CLI@v1
3639
with:
37-
inlineScript: az storage blob upload-batch --connection-string "${{ secrets.AZURE_STORAGE_ACCOUNT_CONNECTION_STRING }}" -d '$web' -s ./publish/wwwroot --overwrite=true --content-encoding="gzip" --pattern="*.gz" --content-type="application/octet-stream"
40+
inlineScript: |
41+
az storage blob update-batch \
42+
--connection-string "${{ secrets.AZURE_STORAGE_ACCOUNT_CONNECTION_STRING }}" \
43+
-c '$web' \
44+
--pattern "*.gz" \
45+
--content-encoding "gzip" \
46+
--content-type "application/octet-stream"

0 commit comments

Comments
 (0)