Skip to content

Commit 1a01483

Browse files
committed
ci(github-actions): reorganize release artifact handling
- create dedicated release artifacts directory to consolidate build outputs - update upload artifact step to use the consolidated directory - add verification step to check release files after build completes
1 parent 03f0a76 commit 1a01483

1 file changed

Lines changed: 22 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,24 @@ jobs:
160160
Rename-Item -Path publish\win-x64\DevTools.exe -NewName DevTools-win-x64.exe
161161
Rename-Item -Path publish\win-arm64\DevTools.exe -NewName DevTools-win-arm64.exe
162162
163+
- name: Prepare release artifacts
164+
shell: pwsh
165+
run: |
166+
New-Item -ItemType Directory -Force -Path release-artifacts
167+
Copy-Item publish\win-x86\DevTools-win-x86.exe release-artifacts\ -Force
168+
Copy-Item publish\win-x64\DevTools-win-x64.exe release-artifacts\ -Force
169+
Copy-Item publish\win-arm64\DevTools-win-arm64.exe release-artifacts\ -Force
170+
Copy-Item installer\*.exe release-artifacts\ -Force
171+
Write-Host "Release artifacts:"
172+
Get-ChildItem release-artifacts\
173+
163174
- name: Upload installer artifacts
164175
uses: actions/upload-artifact@v4
165176
with:
166177
name: installer-v${{ needs.extract-version.outputs.version }}
167-
path: |
168-
publish/win-x86/DevTools-win-x86.exe
169-
publish/win-x64/DevTools-win-x64.exe
170-
publish/win-arm64/DevTools-win-arm64.exe
171-
installer/*.exe
178+
path: release-artifacts/
172179
retention-days: 30
180+
if-no-files-found: error
173181

174182
build-msix:
175183
needs: extract-version
@@ -397,6 +405,15 @@ jobs:
397405
env:
398406
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
399407

408+
- name: Verify release files
409+
if: always()
410+
shell: pwsh
411+
run: |
412+
Write-Host "=== Installer files ==="
413+
Get-ChildItem installer\ -ErrorAction SilentlyContinue | Select-Object Name, Length
414+
Write-Host "`n=== MSIX files ==="
415+
Get-ChildItem msix\ -ErrorAction SilentlyContinue | Select-Object Name, Length
416+
400417
publish-to-store:
401418
needs: [extract-version, create-release]
402419
runs-on: windows-latest

0 commit comments

Comments
 (0)