diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 827efb3..09e6aa7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,17 +53,29 @@ jobs: - name: Download everything from previous jobs uses: actions/download-artifact@v4 + - name: Unify folders + run: | + for /d /r %%D in ("BugTrap*") do ( + echo Moving contents of %%D to the parent directory... + + rem Copy all files and directories recursively + xcopy "%%D\*" "%rootDir%\" /E /I /K /Y + + rem Delete original directory + rd /s /q "%%D" + ) + - name: Upload unified artifact uses: actions/upload-artifact@main with: - name: BugTrap (github-${{ github.run_number }}).zip - path: BugTrap */**/* + name: BugTrap (github-${{ github.run_number }}) + path: * - - name: Pack into one - run: 7z a BugTrap.zip "BugTrap */*" + - name: Pack shipping archive + run: 7z a BugTrap.zip * - - name: Upload manually packed artifact + - name: Upload manually packed shipping artifact uses: actions/upload-artifact@main with: - name: BugTrap.zip + name: BugTrap path: BugTrap.zip \ No newline at end of file