-
Notifications
You must be signed in to change notification settings - Fork 447
Unity release process
- In AppVeyor, go to the build that is meant for release and click
Deploy. Make sure the deploy page shows the correct branch name. - Deploy to
unity-s3 - Deploy to
unity-github - Change the tag name to be X.X.X
- Add release notes
- Add release name
- Pick cute pic
- Ruby
- AWS keys with upload access to the github-vs bucket
- A local clone of the https://github.com/github-for-unity/upload-to-aws. Read the README.md for bootstrapping instructions.
- A local clone of the https://github.com/github-for-unity/Unity repository (any recent branch will do fine)
- A bash shell (Git bash will do fine on Windows)
- Set the
AWS_S3_ACCESS_KEY_IDandAWS_S3_SECRET_ACCESS_KEYenvironment variables with the appropriate data in your shell - Copy the release notes into a text file somewhere, excluding the image
- In the Unity repository, run
./generate-package.sh -ghu -v [VERSION] -p [PATH TO .unitypackage] -r [PATH TO RELEASE NOTES TXT FILE] > latest.json - Open the
latest.jsonfile that was created and double check that the url matches the uploaded build url, that the version is correct, and that the releases notes are correct.-
Important: Delete any extra content before or after the
{}json tags. Thelatest.jsonfile should only contain json - Example of a valid
latest.jsonfile:
{"md5":"cc7419e85662704365da6d10bb9e3eee","url":"http://ghfvs-installer.github.com/unity/releases/github-for-unity-1.0.2.unitypackage","releaseNotes":"# GitHub for Unity 1.0.2 - *Treebeard*\n\n## Features\n- #865 - Git Worktree support *(thanks @shiena)*\n\n## Fixes\n- #841 - Hanging on Initialization\n- #854 - Progress bar does not update\n- #873 - Fix authentication","releaseNotesUrl":null,"message":null,"version":"1.0.2"} -
Important: Delete any extra content before or after the
- Add the
latest.jsonto the GitHub release page of the corresponding release. - Copy the
latest.jsontoupload-to-aws/feed/unity - In
upload-to-aws, runscript/upload-feed. Verify that only thelatest.jsonis going to be uploaded - Run
script/upload-feed go. This will upload thelatest.jsonto aws. - Verify in Unity that the notification of a new version shows up.
- Unity 5.6
- Credentials to the asset store
-
Go to https://publisher.assetstore.unity3d.com/package.html?id=363694 and create a new draft, if one does not exist already
-
Update the version and the release notes
-
Set the system environment variable
GITHUB_UNITY_DISABLEto1to disable GitHub for Unity
-
Download the PackageProject-*.zip file of the build we want to publish from appveyor
-
Unzip it
-
Open Unity 5.6
-
Open a project and select the PackageProject folder
-
Ignore the compatibility warning
-
Open the Asset Store (Window -> Asset Store)
-
Search for Asset Store Tools, download and import them
- After the import is done, you should have a new top level menu called
Asset Store Tools
- After the import is done, you should have a new top level menu called
-
In the
Asset Store Toolsmenu, selectPackage Upload -
Select the package
-
Click
Upload -
In https://publisher.assetstore.unity3d.com/package.html?id=363694, go to the draft and confirm that the package has been uploaded (check the date).
-
Look at the Preview In Asset Store to see what it looks like (the package won't show up I think, just the text and pics)
-
Hit
Submit