File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Build Package"
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+ workflow_dispatch :
8+
9+ jobs :
10+ build-unitypackage :
11+ runs-on : ubuntu-latest
12+ steps :
13+
14+ - name : " Checkout repository"
15+ uses : " actions/checkout@v4"
16+ with :
17+ lfs : true
18+
19+ # Move package to subdirectory
20+ - name : Move package to subdirectory
21+ run : |
22+ mkdir -p unity-package
23+ shopt -s extglob
24+ mv !(unity-package) unity-package/
25+ shopt -u extglob
26+
27+ # Build and export
28+ - name : Build and Export package
29+ uses : game-ci/unity-builder@v4
30+ env :
31+ UNITY_LICENSE : ${{ secrets.UNITY_LICENSE }}
32+ UNITY_EMAIL : ${{ secrets.UNITY_EMAIL }}
33+ UNITY_PASSWORD : ${{ secrets.UNITY_PASSWORD }}
34+ with :
35+ projectPath : unity-package
36+ unityVersion : ${{ vars.UNITY_VERSION }}
37+ targetPlatform : StandaloneLinux64
38+ customParameters : >
39+ -quit -batchmode
40+ -executeMethod BuildTools.CopyBuiltDll
41+ -executeMethod BuildTools.ExportPackage
42+
43+ # Upload the unitypackage as artifact
44+ - name : Upload package
45+ uses : actions/upload-artifact@v4
46+ with :
47+ name : TextMotionPro.unitypackage
48+ path : unity-package/Builds/TextMotionPro.unitypackage
You can’t perform that action at this time.
0 commit comments