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 eeca6cb commit 5589a77
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,24 @@ 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
[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
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"}
"BULMAVERSION='$($BulmaVersion)'" | Set-Content -Append $GITHUB_ENV
"`$BULMA_VERSION='$($BulmaVersion)'" | Set-Content -Append $GITHUB_ENV
}
Get-ChildItem .
Get-ChildItem .\assets
- name: Create Release
run: |
Write-Host "Creating Release vor $ENV:{BULMA_VERSION}
git add assets\bulma
git status
Write-Output "committing..."
Expand Down

0 comments on commit 5589a77

Please sign in to comment.