Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Unity Cloud Build to S3

Discussion in 'Unity Build Automation' started by rie_unity, May 17, 2022.

  1. rie_unity

    rie_unity

    Joined:
    Mar 15, 2022
    Posts:
    11
    I'm trying to upload a Unity Cloud Build to S3 via a post build or post export script. Has anyone been able to do this before?

    I found this: https://forum.unity.com/threads/unity-addressables-post-build-script-to-upload-to-a-server.1149314/
    But it's for addressable and not uploading the entire project. I also didn't have any files in that path that was pointed in that forum. At the moment I was trying to use the post export, but have no idea on how to upload it.

    If anyone has a way to fire off a shell script in the post export, that would be awesome too!
     
    Last edited: May 17, 2022
  2. rie_unity

    rie_unity

    Joined:
    Mar 15, 2022
    Posts:
    11
  3. AlejandroSDev

    AlejandroSDev

    Joined:
    Jul 7, 2022
    Posts:
    8
    +1
     
  4. Botanika

    Botanika

    Joined:
    Nov 2, 2013
    Posts:
    60
  5. luisgrub

    luisgrub

    Joined:
    Oct 12, 2022
    Posts:
    1
  6. Carl_UnityDSE

    Carl_UnityDSE

    Unity Technologies

    Joined:
    May 25, 2022
    Posts:
    54
    Hello,

    You can use the build's configuration's Advanced setting. In the Advanced settings, there is a section called "Script hooks":
    upload_2022-11-14_9-33-55.png
    You can select what scripts to run, in this section. The scripts have to be in the repository and you have to input the path manually.
    If the script is directly in the repository (not in any folders), simply input the full name of the script.