-
Notifications
You must be signed in to change notification settings - Fork 448
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_ID
andAWS_S3_SECRET_ACCESS_KEY
environment 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.json
file 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.json
file should only contain json - Example of a valid
latest.json
file:
{"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.json
to the GitHub release page of the corresponding release. - Copy the
latest.json
toupload-to-aws/feed/unity
- In
upload-to-aws
, runscript/upload-feed
. Verify that only thelatest.json
is going to be uploaded - Run
script/upload-feed go
. This will upload thelatest.json
to 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_DISABLE
to1
to 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 Tools
menu, 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