Creating a new .unitypackage for version 2022.3.16f1 🚀 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build UnityPackage | |
run-name: Creating a new .unitypackage for version 2022.3.16f1 🚀 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-unitypackage: | |
name: Build UnityPackage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Unity | |
uses: game-ci/unity-setup@v3 | |
with: | |
unityVersion: '2022.3.16f1' | |
activateLicense: false | |
- name: Build UnityPackage | |
run: | | |
# Run Unity in batch mode to execute the export script | |
xvfb-run --auto-servernum --server-args="-screen 0 640x480x24" \ | |
/opt/Unity/Editor/Unity \ | |
-batchmode \ | |
-nographics \ | |
-projectPath "$(pwd)" \ | |
-executeMethod UnityPackageExporter.ExportPackage \ | |
-quit | |
- name: Upload UnityPackage | |
uses: actions/upload-artifact@v3 | |
with: | |
name: RudderStackUnityPackage | |
path: RudderStackUnity.unitypackage |