Skip to content

Commit

Permalink
Corrected comment, added webp
Browse files Browse the repository at this point in the history
  • Loading branch information
nerddtvg committed Aug 29, 2023
1 parent 1bd8296 commit bc6f1bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ jobs:
".gif" = "image/gif"
".js" = "text/javascript"
".css" = "text/css"
".webm" = "video/webm"
".webp" = "image/webp"
}
$defaultType = "application/octet-stream"
Expand All @@ -171,7 +173,8 @@ jobs:
Write-Host "Missing contentType: $($_.Extension)"
}
# Because we are not manipulating the object, we must specify the proper relative path
# Because we've modified the pipeline, Set-AzStorageBlobContent no longer respects the relative path
# We must set that ourselves
$relativePath = (Resolve-Path -LiteralPath $_.FullName -Relative) -replace '^\.\/',''
Set-AzStorageBlobContent -File $_.FullName -Blob $relativePath -Container `$web -Context $acct.Context -Properties @{"ContentType" = $contentType } -Force
Expand Down

0 comments on commit bc6f1bb

Please sign in to comment.