#!/bin/sh set -x #! $1 will contain our build path, which contains our build folder echo "$1" cd $1 export buildfolder="22d2 - WebGL/Build" if [ -z "$buildfolder" ]; then echo "Could not find build folder" exit 1 fi if [ ! -d ./tmp ]; then git clone "https://${nickname}:${githubkey}@${repository}" ./tmp fi cp -r "$buildfolder" ./tmp/assets cd ./tmp git add assets/Build git config --global user.email "$email" git config --global user.name "$nickname" git commit -m "Unity Cloud Build WebGL" git push --force