56 lines
2.0 KiB
YAML
56 lines
2.0 KiB
YAML
{% metadata_file .yamato/package.metafile %}
|
|
|
|
webapp-platforms:
|
|
- name: win
|
|
- name: macos
|
|
- name: linux
|
|
packages:
|
|
- name: renderstreaming
|
|
---
|
|
|
|
publish_github_release_webapp:
|
|
name: Publish Webapp to Github Release
|
|
agent:
|
|
type: Unity::VM
|
|
image: package-ci/ubuntu:v2.0.0-947481
|
|
flavor: b1.large
|
|
variables:
|
|
GIT_TAG: You need to change this parameter on Yamato UI
|
|
commands:
|
|
# see https://github.com/cli/cli/blob/trunk/docs/install_linux.md
|
|
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 23F3D4EA75716059
|
|
- sudo apt-add-repository https://cli.github.com/packages
|
|
- sudo apt update
|
|
- sudo apt install gh
|
|
- gh release upload $GIT_TAG 'WebApp/bin~/webserver' --clobber -R Unity-Technologies/UnityRenderStreaming
|
|
- gh release upload $GIT_TAG 'WebApp/bin~/webserver_mac' --clobber -R Unity-Technologies/UnityRenderStreaming
|
|
- gh release upload $GIT_TAG 'WebApp/bin~/webserver.exe' --clobber -R Unity-Technologies/UnityRenderStreaming
|
|
dependencies:
|
|
{% for platform in webapp-platforms %}
|
|
- .yamato/upm-ci-webapp.yml#pack_{{ platform.name }}
|
|
{% endfor %}
|
|
|
|
{% for project in template_projects %}
|
|
{% for editor in editors %}
|
|
publish_github_release_template_{{ project.name }}_{{ editor.version }}:
|
|
name: Publish Template to Github Release {{ project.name }} {{ editor.version }}
|
|
agent:
|
|
type: Unity::VM
|
|
image: package-ci/ubuntu:v2.0.0-947481
|
|
flavor: b1.large
|
|
variables:
|
|
GIT_TAG: You need to change this parameter on Yamato UI
|
|
commands:
|
|
# see https://github.com/cli/cli/blob/trunk/docs/install_linux.md
|
|
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 23F3D4EA75716059
|
|
- sudo apt-add-repository https://cli.github.com/packages
|
|
- sudo apt update
|
|
- sudo apt install gh
|
|
- |
|
|
file=`find upm-ci~/packages -name "*.tgz" -print`
|
|
gh release upload $GIT_TAG $file --clobber -R Unity-Technologies/UnityRenderStreaming
|
|
dependencies:
|
|
- .yamato/upm-ci-template.yml#pack_{{ project.name }}_{{ editor.version }}
|
|
{% endfor %}
|
|
{% endfor %}
|