Skip to content

Commit 2c0b66c

Browse files
committed
Fix CI for publishing
1 parent e070e31 commit 2c0b66c

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.yamato/upm-ci.yml

+19-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pack_mathematics:
1818
image: buildfarm/mac:latest
1919
flavor: m1.mac
2020
commands:
21-
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
21+
- npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g
2222
- upm-ci package pack --package-path src/
2323
artifacts:
2424
packages:
@@ -36,7 +36,7 @@ validate_mathematics_package_linux:
3636
type: Unity::VM
3737
flavor: b1.large
3838
commands:
39-
- sudo npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
39+
- sudo npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g
4040
- DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1
4141
artifacts:
4242
packages:
@@ -53,7 +53,7 @@ publish:
5353
image: package-ci/win10:stable
5454
flavor: m1.large
5555
commands:
56-
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
56+
- npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g
5757
- upm-ci package publish --package-path src/
5858
artifacts:
5959
packages:
@@ -62,6 +62,21 @@ publish:
6262
dependencies:
6363
- .yamato/upm-ci.yml#validate_mathematics_package_linux
6464

65+
promote:
66+
name: Promote
67+
agent:
68+
type: Unity::VM
69+
image: package-ci/win10:stable
70+
flavor: m1.large
71+
commands:
72+
- npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g
73+
- upm-ci package promote --package-path src/
74+
artifacts:
75+
packages:
76+
paths:
77+
- "upm-ci~/packages/**/*"
78+
dependencies:
79+
- .yamato/upm-ci.yml#publish
6580

6681
publish_ci:
6782
name: all Publish Pipeline
@@ -75,7 +90,7 @@ publish_ci:
7590
triggers:
7691
tags:
7792
only:
78-
- /^(v|V)\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
93+
- /^\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
7994
artifacts:
8095
packages:
8196
paths:

0 commit comments

Comments
 (0)