Skip to content

Commit

Permalink
Put into in one pipeline to publish packages to github release
Browse files Browse the repository at this point in the history
  • Loading branch information
karasusan committed Jul 10, 2019
1 parent c7396fb commit 873b6a1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 70 deletions.
26 changes: 26 additions & 0 deletions .yamato/upm-ci-publish-github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
platforms:
- name: win
- name: mac
---
publish_github_release:
name: Publish Github Release
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: m1.large
commands:
- npm install github-release-cli -g
- github-release upload -o "Unity-Technologies" -r "UnityRenderStreaming" -t "%GIT_TAG%" -n "%GIT_TAG%" "upm-ci~/packages/com.unity.webrtc-%GIT_TAG%.tgz"
- github-release upload -o "Unity-Technologies" -r "UnityRenderStreaming" -t "%GIT_TAG%" -n "%GIT_TAG%" "upm-ci~/packages/com.unity.template.renderstreaming-%GIT_TAG%.tgz"
- github-release upload -o "Unity-Technologies" -r "UnityRenderStreaming" -t "%GIT_TAG%" -n "%GIT_TAG%" "Assets/bin~/webserver"
- github-release upload -o "Unity-Technologies" -r "UnityRenderStreaming" -t "%GIT_TAG%" -n "%GIT_TAG%" "Assets/bin~/webserver.exe"
triggers:
tags:
only:
- /^(v|V)?\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
dependencies:
- .yamato/upm-ci-webrtc.yml#pack
- .yamato/upm-ci-template.yml#pack
{% for platform in platforms %}
- .yamato/upm-ci-webapp.yml#pack_{{ platform.name }}
{% endfor %}
25 changes: 0 additions & 25 deletions .yamato/upm-ci-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,29 +83,4 @@ publish:
- .yamato/upm-ci-template.yml#test_{{ platform.name }}_{{ editor.version }}
{% endfor %}
{% endfor %}

publish_github_release:
name: Publish Github {{ project.packagename }}
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: m1.large
commands:
- npm install github-release-cli -g
- github-release upload -o "Unity-Technologies" -r "UnityRenderStreaming" -t "%GIT_TAG%" -n "%GIT_TAG%" "upm-ci~/packages/com.unity.template.renderstreaming-%GIT_TAG%.tgz"
triggers:
tags:
only:
- /^(v|V)?\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
packages:
paths:
- "upm-ci~/packages/*.tgz"
- "upm-ci~/templates/*.tgz"
dependencies:
- .yamato/upm-ci-template.yml#pack
{% endfor %}
24 changes: 0 additions & 24 deletions .yamato/upm-ci-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,4 @@ test_{{ platform.name }}:
- .yamato/upm-ci-webapp.yml#pack_{{ platform.name }}
{% endfor %}
{% endfor %}

publish_github_release:
name: Publish Github {{ project.packagename }}
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: m1.large
commands:
- npm install github-release-cli -g
- github-release upload -o "Unity-Technologies" -r "UnityRenderStreaming" -t "%GIT_TAG%" -n "%GIT_TAG%" "Assets/bin~/webserver"
- github-release upload -o "Unity-Technologies" -r "UnityRenderStreaming" -t "%GIT_TAG%" -n "%GIT_TAG%" "Assets/bin~/webserver.exe"
triggers:
tags:
only:
- /^(v|V)?\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
artifacts:
artifacts.zip:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
{% for platform in platforms %}
- .yamato/upm-ci-webapp.yml#pack_{{ platform.name }}
{% endfor %}
{% endfor %}
21 changes: 0 additions & 21 deletions .yamato/upm-ci-webrtc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,25 +101,4 @@ publish:
- .yamato/upm-ci-webrtc.yml#test_{{ platform.name }}_{{ editor.version }}
{% endfor %}
{% endfor %}

publish_github_release:
name: Publish Github {{ project.packagename }}
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: m1.large
commands:
- npm install github-release-cli -g
- github-release upload -o "Unity-Technologies" -r "UnityRenderStreaming" -t "%GIT_TAG%" -n "%GIT_TAG%" "upm-ci~/packages/com.unity.webrtc-%GIT_TAG%.tgz"
triggers:
tags:
only:
- /^(v|V)?\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
artifacts:
artifacts.zip:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
- .yamato/upm-ci-webrtc.yml#pack
{% endfor %}

0 comments on commit 873b6a1

Please sign in to comment.