1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- {% metadata_file .yamato/package.metafile -%}
- platforms:
- - name: win
- artifact_filename: webrtc-win.zip
- - name: linux
- artifact_filename: webrtc-linux.zip
- - name: macos
- artifact_filename: webrtc-mac.zip
- - name: ios
- artifact_filename: webrtc-ios.zip
- - name: android
- artifact_filename: webrtc-android.zip
- ---
- publish_com.unity.webrtc_github_release:
- name: Publish com.unity.webrtc 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
- - |
- file=`find upm-ci~/packages -name "*.tgz" -print`
- gh release upload $GIT_TAG $file --clobber -R Unity-Technologies/com.unity.webrtc
- triggers:
- tags:
- only:
- - /^(v|V)?\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
- dependencies:
- - .yamato/upm-ci-webrtc-packages.yml#pack_webrtc
- publish_libwebrtc_github_release:
- name: Publish libwebrtc {{ webrtc_version.name }} 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
- {% for platform in platforms %}
- - gh release upload $GIT_TAG artifacts/{{ platform.artifact_filename }} --clobber -R Unity-Technologies/com.unity.webrtc
- {% endfor %}
- dependencies:
- {% for platform in platforms %}
- - .yamato/upm-ci-libwebrtc.yml#build_{{ platform.name }}
- {% endfor %}
|