Skip to content

Commit 0e509c6

Browse files
committed
Added release workflow (needs to be tested and tweaked)
1 parent a4b70e2 commit 0e509c6

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

0 commit comments

Comments
 (0)