Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
irkode authored Jul 27, 2024
1 parent 5589a77 commit fe66822
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ jobs:
} | Sort-Object -Property version | Select-Object -First 1
if ($BulmaRelease) {
Write-Output "Downloading Bulma $($BulmaRelease.version)"
$archive = Join-Path -Path $TEMPDIR -ChildPath $BulmaRelease.archive
Invoke-WebRequest -Uri $BulmaRelease.download -OutFile $archive
$bulmaFolder = (Get-Item $archive).Basename
Invoke-WebRequest -Uri $BulmaRelease.download -OutFile $BulmaRelease.archive
$bulmaFolder = (Get-Item $BulmaRelease.archive).Basename
[void](New-Item -Type Directory ./assets -ErrorAction Stop)
if (-Not (Test-Path .\assets -PathType Container)) { throw "missing folder: assets"}
Expand-Archive -LiteralPath $archive -DestinationPath .\assets
Expand-Archive -LiteralPath $BulmaRelease.archive -DestinationPath .\assets
if (Test-Path .\assets\__MACOSX) { Remove-Item .\assets\__MACOSX -ErrorAction SilentlyContinue -Recurse }
Rename-Item .\assets\$bulmaFolder "bulma"
if (-Not (Test-Path ./assets/bulma -PathType Container)) { throw "missing folder: assets/bulma folder"}
Expand Down

0 comments on commit fe66822

Please sign in to comment.