File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 44
44
- run :
45
45
name : Export package version
46
46
command : |
47
+ export DISTROS=( $DEB $RPM )
47
48
PKG_VERSION=$(node -e "console.log(require('./package.json').st2_version);")
48
49
if [ -n "$PACKAGECLOUD_TOKEN" ]; then
49
- PKG_RELEASE=$(packagecloud.sh next-revision bionic ${PKG_VERSION} st2web)
50
+ PKG_RELEASE=$(packagecloud.sh next-revision ${DISTROS[0]} ${PKG_VERSION} st2web)
50
51
else
51
52
# is fork
52
53
PKG_RELEASE=1
@@ -131,13 +132,19 @@ jobs:
131
132
command : |
132
133
nvm use 20.8.1
133
134
make deb
134
- echo $DEB | tr ' ' '\n' | xargs -I{} cp -vr ../st2web_*.{deb,changes} ~/artifacts/{}
135
+ for i in $DEB
136
+ do
137
+ cp -vr ../st2web_*.{deb,changes} ~/artifacts/"${i}"
138
+ done
135
139
- run :
136
140
name : Make RPM packages
137
141
command : |
138
142
nvm use 20.8.1
139
143
make rpm
140
- echo $RPM | tr ' ' '\n' | xargs -I{} cp -vr ../st2web-*.rpm ~/artifacts/{}
144
+ for i in $RPM
145
+ do
146
+ cp -vr ../st2web-*.rpm ~/artifacts/"${i}"
147
+ done
141
148
- store_artifacts :
142
149
path : ~/artifacts
143
150
destination : packages
You can’t perform that action at this time.
0 commit comments