Skip to content

Commit

Permalink
updated action
Browse files Browse the repository at this point in the history
  • Loading branch information
timothydodd committed Sep 27, 2023
1 parent 0c7e0e0 commit 7f2c11b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ jobs:
uses: actions/download-artifact@v1
with:
name: deploy_dist
- name: "Say Hello"
run: echo "Hello storage ${{vars.STORAGE_ACCOUNT_NAME}}!"
- name: Delete blob storage
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob delete-batch --source '$web' --account-name ${{vars.STORAGE_ACCOUNT_NAME}} --auth-mode
az storage blob delete-batch --source '$web' --account-name ${{vars.STORAGE_ACCOUNT_NAME}} --auth-mode key
- name: Upload to blob storage
uses: azure/CLI@v1
with:
Expand All @@ -70,7 +68,7 @@ jobs:
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob update --account-name ${{vars.STORAGE_ACCOUNT_NAME}} --auth-mode --container-name '$web' --name 'index.html' --content-cache-control 'no-cache'
az storage blob update --account-name ${{vars.STORAGE_ACCOUNT_NAME}} --auth-mode key --container-name '$web' --name 'index.html' --content-cache-control 'no-cache'
- name: logout
run: |
az logout
Expand Down

0 comments on commit 7f2c11b

Please sign in to comment.