Skip to content

Commit 6dfa548

Browse files
committed
ci: flatten bin files to artifact root
1 parent bd9ce9b commit 6dfa548

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/dev-build-windows.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)