diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index def02df..7046d88 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: jobs: - windows: + build: name: ${{ matrix.configuration }} ${{ matrix.platform }} runs-on: windows-latest strategy: @@ -44,3 +44,39 @@ jobs: bin/*.lib bin/*.pdb LICENSE + + pack-everything: + name: Pack everything into one archive + needs: build + runs-on: windows-latest + steps: + - name: Download everything from previous jobs + uses: actions/download-artifact@v4 + + - name: Unify folders + shell: cmd + 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 }}) + path: "*" + + - name: Pack shipping archive + run: 7z a BugTrap.zip * + + - name: Upload manually packed shipping artifact + uses: actions/upload-artifact@main + with: + name: BugTrap + path: BugTrap.zip \ No newline at end of file