File tree 6 files changed +41
-17
lines changed
6 files changed +41
-17
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,12 @@ We welcome [issues](https://github.com/game-ci/unity-orb/issues) to and [pull re
30
30
5 . Now ensure the version tag selected is semantically accurate based on the changes included.
31
31
6 . Click _ "Publish Release"_ .
32
32
- This will push a new tag and trigger your publishing pipeline on CircleCI.
33
+
34
+ ### Manual Deploy
35
+ If you want a private orb for your build env. The following steps allow you to do so. These are adapted from the CircleCI
36
+ [ Manual Orb Authoring Process] ( https://circleci.com/docs/orb-author-validate-publish/#publish-your-orb )
37
+ 1 . ` circleci namespace create <name> --org-id <your-organization-id> `
38
+ 2 . ` circleci orb create <my-namespace>/<my-orb-name> --private `
39
+ 3 . ` circleci orb pack src > unity-orb.yml `
40
+ 4 . ` circleci orb publish unity-orb.yml <my-namespace>/<my-orb-name>@dev:first `
41
+ 5 . ` circleci orb publish promote <my-namespace>/<my-orb-name>@dev:first patch `
Original file line number Diff line number Diff line change 19
19
fi
20
20
21
21
echo " ---------- git config --list -------------"
22
- git config --list
22
+ git --no-pager config --list
23
23
24
24
echo " ---------- git config --list --show-origin -------------"
25
- git config --list --show-origin
25
+ git --no-pager config --list --show-origin
Original file line number Diff line number Diff line change 19
19
fi
20
20
21
21
echo " ---------- git config --list -------------"
22
- git config --list
22
+ git --no-pager config --list
23
23
24
24
echo " ---------- git config --list --show-origin -------------"
25
- git config --list --show-origin
25
+ git --no-pager config --list --show-origin
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ detect-os
12
12
13
13
# Expand environment name variable parameters.
14
14
readonly git_private_token=" ${! PARAM_GIT_PRIVATE_TOKEN} "
15
- readonly CONTAINER_NAME=" ${CIRCLE_PROJECT_REPONAME} -${CIRCLE_BUILD_NUM} "
16
15
17
16
if [ " $PLATFORM " = " linux" ]; then eval " $SCRIPT_GIT_CREDENTIAL_LINUX " ;
18
17
elif [ " $PLATFORM " = " macos" ]; then eval " $SCRIPT_GIT_CREDENTIAL_MACOS " ;
Original file line number Diff line number Diff line change 3
3
# shellcheck disable=SC2154
4
4
5
5
trap_exit () {
6
- local exit_status=" $? "
7
-
8
- if [ " $exit_status " -ne 0 ]; then
9
- printf ' %s\n' ' The script did not complete successfully.'
10
-
11
- printf ' %s\n' " Removing the container \" $CONTAINER_NAME \" ."
12
- docker rm -f " $CONTAINER_NAME " & > /dev/null || true
13
-
14
- exit " $exit_status "
15
- fi
6
+ local exit_status=" $? "
7
+
8
+ if [ " $exit_status " -ne 0 ]; then
9
+ printf ' %s\n' ' The script did not complete successfully.'
10
+
11
+ printf ' %s\n' " Removing the container \" $CONTAINER_NAME \" ."
12
+ docker rm -f " $CONTAINER_NAME " & > /dev/null || true
13
+
14
+ exit " $exit_status "
15
+ fi
16
16
}
17
17
trap trap_exit EXIT
18
18
19
+ running_builds=$( docker ps --filter " Name=$CONTAINER_NAME " --format " {{.ID}}" )
20
+ if [ -z " $running_builds " ]; then
21
+ # The build failed before and it killed the host
22
+ # Startup so we can return the license
23
+ docker run -dit \
24
+ --name " $CONTAINER_NAME " \
25
+ --env PROJECT_PATH=" C:/unity_project" \
26
+ --env UNITY_USERNAME=" $unity_username " \
27
+ --env UNITY_PASSWORD=" $unity_password " \
28
+ --volume " C:/Program Files (x86)/Microsoft Visual Studio" :" C:/Program Files (x86)/Microsoft Visual Studio" \
29
+ --volume " C:/Program Files (x86)/Windows Kits" :" C:/Program Files (x86)/Windows Kits" \
30
+ --volume " C:/ProgramData/Microsoft/VisualStudio" :" C:/ProgramData/Microsoft/VisualStudio" \
31
+ " unityci/editor:windows-${GAMECI_EDITOR_VERSION} -${GAMECI_TARGET_PLATFORM} -2" \
32
+ powershell
33
+ fi
34
+
19
35
set -x
20
36
# Return license
21
37
docker exec " $CONTAINER_NAME " powershell ' & "C:\Program Files\Unity\Hub\Editor\*\Editor\Unity.exe" -returnlicense -batchmode -quit -nographics -username $Env:UNITY_USERNAME -password $Env:UNITY_PASSWORD -logfile | Out-Host'
Original file line number Diff line number Diff line change 47
47
fi
48
48
49
49
echo " ---------- git config --list -------------"
50
- docker exec " $CONTAINER_NAME " " git config --list"
50
+ docker exec " $CONTAINER_NAME " " git --no-pager config --list"
51
51
52
52
echo " ---------- git config --list --show-origin -------------"
53
- docker exec " $CONTAINER_NAME " " git config --list --show-origin"
53
+ docker exec " $CONTAINER_NAME " " git --no-pager config --list --show-origin"
You can’t perform that action at this time.
0 commit comments