Skip to content

Creating a new .unitypackage for version 2022.3.16f1 🚀 #3

Creating a new .unitypackage for version 2022.3.16f1 🚀

Creating a new .unitypackage for version 2022.3.16f1 🚀 #3

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