You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- StandaloneOSX # Build a macOS standalone (Intel 64-bit).
35
40
- StandaloneWindows # Build a Windows standalone.
@@ -42,27 +47,30 @@ jobs:
42
47
43
48
- uses: actions/cache@v2
44
49
with:
45
-
path: Library
50
+
path: ${{ matrix.projectPath }}/Library
46
51
key: Library-${{ matrix.targetPlatform }}
47
52
restore-keys: Library-
48
53
49
54
- uses: game-ci/unity-builder@v2
50
55
id: build
51
56
with:
57
+
unityVersion: 2020.2.5f1
58
+
projectPath: ${{ matrix.projectPath }}
52
59
targetPlatform: ${{ matrix.targetPlatform }}
53
60
54
-
- uses: actions/upload-artifact@v2
55
-
with:
56
-
name: Build-${{ matrix.targetPlatform }}
57
-
path: build/${{ matrix.targetPlatform }}
61
+
- name: Zip build
62
+
run: |
63
+
pushd build/${{ matrix.targetPlatform }}
64
+
zip -r ../../Build-${{ matrix.targetPlatform }}.zip .
65
+
popd
58
66
59
67
- name: Upload Release Asset
60
68
id: upload-release-asset
61
69
uses: actions/upload-release-asset@v1
62
70
env:
63
71
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64
72
with:
65
-
upload_url: ${{ steps.createRelease.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
66
-
asset_path: build/${{ matrix.targetPlatform }}
67
-
asset_name: Build-${{ matrix.targetPlatform }}
73
+
upload_url: ${{ needs.createRelease.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
0 commit comments