File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777 # # Replace `BuildScript.PerformBuild` with your project's build method.
7878 # /opt/unity/Editor/Unity -batchmode -nographics -quit -projectPath "$GITHUB_WORKSPACE" -buildTarget ${{ matrix.target }} -executeMethod BuildScript.PerformBuild -logFile "$outdir/build.log" || true
7979
80- - name : Archive build
80+ - name : Archive build (Linux/macOS)
81+ if : runner.os != 'windows-latest'
8182 run : |
82- zip -r build-${{ matrix.unity }}-${{ matrix.target }}.zip ./build
83+ zip -r build-${{ matrix.unity }}-${{ matrix.target }}.zip ./build
84+
85+ - name : Archive build (Windows)
86+ if : runner.os == 'windows-latest'
87+ shell : pwsh
88+ run : |
89+ Compress-Archive -Path build -DestinationPath build-${{ matrix.unity }}-${{ matrix.target }}.zip -Force
8390
8491 - name : Upload to GitHub Release
8592 if : github.event_name == 'release'
You can’t perform that action at this time.
0 commit comments