Commit 9fa524e8 authored by Robin Fischer's avatar Robin Fischer

Add script to upload asset store packages

parent 0c18f4c7
# Move repo content to own directory
shopt -s extglob
mkdir assetPackage
mv !(assetPackage) assetPackage
run-unity.sh "-batchmode -createProject $(pwd)/UnityProject -logFile -quit"
# Checkout asset publisher
BASE_URL=`echo $CI_REPOSITORY_URL | sed "s;\/*$CI_PROJECT_PATH.*;;"`
REPO_URL="${BASE_URL}/robinryf/unity-asset-store-publisher.git"
git clone --recursive ${REPO_URL} $(pwd)/UnityProject/Assets/UnityAssetStorePublisher
# Move package files into Unity project
mv assetPackage $(pwd)/UnityProject/Assets/${ASSET_STORE_ROOT_PATH}
# Start package upload
run-unity.sh "-batchmode -executeMethod AssetStoreBatchMode.UploadAssetStorePackage -logFile -quit"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment