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 4444 - run :
4545 name : Export package version
4646 command : |
47+ export DISTROS=( $DEB $RPM )
4748 PKG_VERSION=$(node -e "console.log(require('./package.json').st2_version);")
4849 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)
5051 else
5152 # is fork
5253 PKG_RELEASE=1
@@ -131,13 +132,19 @@ jobs:
131132 command : |
132133 nvm use 20.8.1
133134 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
135139 - run :
136140 name : Make RPM packages
137141 command : |
138142 nvm use 20.8.1
139143 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
141148 - store_artifacts :
142149 path : ~/artifacts
143150 destination : packages
You can’t perform that action at this time.
0 commit comments