Is there a Best Practice to Upload HTML5 Applications from a File without using the WebIDE.
My Goal is to create a Zip Package which I can deploy to multiple Subaccounts and just needs the proper Destination to get the App running.
Approach
Problem
The best practice is to use a Multi Target Applications (MTA).
This MTA can be deployed as a "Solution" (and not as a HTML5 app) to your SCP environment.
Your project needs a new file mta.yaml
where some configuration is done.
You need to download the MTA Archive Builder and run the following command to get an .mtar file:
java -jar $MTA_BUILDER_HOME/mta_archive_builder.jar --mtar deploy.mtar --build-target=NEO build
You can then deploy this solution to your SCP accounts.
This can also be done via CMD using the SAP Cloud Platform Neo Environment SDK and the following command.
neo.sh deploy-mta -a "$SCP_ACCOUNT" -u "$SCP_USER" -p "$SCP_PASSWORD" -h hana.ondemand.com --source deploy.mtar --synchronous
Read more about creating MTAs here.
There is also a docker image which contains all the tools. This can be used for a CI/CD pipeline in Gitlab.
Edit: The MTA Archive Builder is deprecated. Cloud MTA Build Tool is the way to go.