Skip to content

Commit 9fc8ac4

Browse files
committed
use buidalon unity setup
1 parent 6d6ac00 commit 9fc8ac4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ jobs:
4545
gh auth status || gh auth login --with-token <<< "$GH_TOKEN"
4646
4747
- name: Set up Unity
48-
uses: buildalon/unity-action@v3
48+
uses: buildalon/unity-setup@v2.1.1
4949
with:
50-
editor-path: "/Applications/Unity/Hub/Editor"
51-
args: ./composeRelease.sh "$BUMP_COMMAND"
50+
unity-version: '2021.3.0f1' # the oldest version of Unity we want to support and upload from
51+
modules: 'linux-il2cpp android ios'
52+
github-token: ${{ secrets.GITHUB_TOKEN }}
5253

5354

5455
- name: 🔍 Confirm PR Exists

composeRelease.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fi
6868
# try to find unity executable
6969
unity_project_version_path="OneSignalExample/ProjectSettings/ProjectVersion.txt"
7070
unity_project_version=$(cat ${unity_project_version_path} | sed -n 's/^m_EditorVersion: //p')
71-
unity_versions_path="/Applications/Unity/Hub/Editor"
71+
unity_versions_path="/opt/unity/Editor/Unity"
7272
unity_path="${unity_versions_path}/${unity_project_version}"
7373

7474
if [[ ! -d "${unity_versions_path}" ]]
@@ -335,4 +335,4 @@ gh release create "${new_version}" "${package_path}"\
335335

336336
# return to workspace
337337
git checkout "${current_branch}"
338-
git stash pop
338+
git stash pop

0 commit comments

Comments
 (0)