Skip to content

Commit

Permalink
add retrieve and unpack to build
Browse files Browse the repository at this point in the history
  • Loading branch information
irkode committed Jul 27, 2024
1 parent 300ff5e commit a18f38e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

defaults:
run:
shell: powershell
# defaults:
# run:
# shell: powershell

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -32,10 +32,14 @@ jobs:
# Runs a set of commands using the runners shell
- name: Init scripts
run: |
New-Item -Type Directory ./src -ErrorAction SilentlyContinue -ErrorAction Stop
$PSVersionTable | Format-List | Out-Host
[void](New-Item -Type Directory ./src -ErrorAction Stop)
Copy-Item ./build.ps1 ./src -ErrorAction Stop
Remove-Item ./build.ps1 -ErrorAction Stop
- name: Package Bulma
run: |
./src/build.ps1 -ErrorAction Stop
-name: Cleanup
- name: Cleanup
run: |
Remove-Item -Recurse -Force .\src
tree /f .
5 changes: 3 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ foreach ($release in $BulmaReleases) {
}
}
$bulmaFolder = (Get-Item $archive).Basename
Remove-Item -Recurse .\assets
[void](Remove-Item -Recurse .\assets -ErrorAction SilentlyContinue)
if ( Test-Path .\assets) { throw ".\assets should not exist"}
Expand-Archive -LiteralPath $archive -DestinationPath .
Rename-Item $bulmaFolder "assets"
Remove-Item __MACOSX -ErrorAction SilentlyContinue -Recurse
[void](Remove-Item __MACOSX -ErrorAction SilentlyContinue -Recurse)
git status

0 comments on commit a18f38e

Please sign in to comment.