File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,15 +133,25 @@ jobs:
133133 Show-MatchesWithContext -Path "bin/build.stderr.log" -Label "stderr" -Pattern $patterns
134134 Show-MatchesWithContext -Path "bin/build.stdout.log" -Label "stdout" -Pattern $patterns
135135
136+ - name : Prepare dev artifact bundle
137+ run : |
138+ $bundle = ".artifact-bundle"
139+ if (Test-Path $bundle) { Remove-Item -Recurse -Force $bundle }
140+ New-Item -ItemType Directory -Path $bundle | Out-Null
141+
142+ # All files from bin go to artifact root.
143+ Copy-Item -Path "bin/*" -Destination $bundle -Recurse -Force
144+
145+ Copy-Item -Path "config.json" -Destination $bundle -Force
146+ Copy-Item -Path "user" -Destination $bundle -Recurse -Force
147+ Copy-Item -Path "static" -Destination $bundle -Recurse -Force
148+ Copy-Item -Path "README.md" -Destination $bundle -Force
149+ Copy-Item -Path "LICENSE" -Destination $bundle -Force
150+
136151 - name : Upload dev artifact
137152 uses : actions/upload-artifact@v4
138153 with :
139154 name : OmniPanel-go-windows-dev
140155 path : |
141- bin/**
142- config.json
143- user/**
144- static/**
145- README.md
146- LICENSE
156+ .artifact-bundle/**
147157 if-no-files-found : warn
You can’t perform that action at this time.
0 commit comments