Skip to content

Commit

Permalink
Fix publish-docs.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tuckn committed Jan 8, 2024
1 parent 2ddd348 commit f79b89f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ jobs:
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch --destination '$web/docs/WshJest' --source ./docs --account-name ${{ secrets.STORAGE_ACCOUNT_NAME }} --auth-mode key
az storage blob delete-batch --source $web --pattern docs/WshJest/* --account-name ${{ secrets.STORAGE_ACCOUNT_NAME }} --auth-mode key
az storage blob upload-batch --destination '$web/docs/WshJest' --source ./docs --account-name ${{ secrets.STORAGE_ACCOUNT_NAME }} --auth-mode key
- name: Purge CDN endpoint
uses: azure/CLI@v1
with:
inlineScript: |
az afd endpoint purge --content-paths '/docs/WshJest/*' --profile-name ${{ secrets.AFD_PROFILE_NAME }} --endpoint-name ${{ secrets.AFD_ENDPOINT_NAME }} --resource-group ${{ secrets.RESOURCE_GROUP_NAME }} --subscription ${{ secrets.SUBSCRIPTION_NAME }} --domains assets.tuckn.net
az afd endpoint purge --content-paths '/docs/WshJest/*' --profile-name ${{ secrets.AFD_PROFILE_NAME }} --endpoint-name ${{ secrets.AFD_ENDPOINT_NAME }} --resource-group ${{ secrets.RESOURCE_GROUP_NAME }} --subscription ${{ secrets.SUBSCRIPTION_ID }} --domains assets.tuckn.net
- name: logout
uses: azure/login@v1
Expand Down

0 comments on commit f79b89f

Please sign in to comment.