File: upload-artifacts.sh.in

package info (click to toggle)
merkaartor 0.19.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 19,860 kB
  • sloc: cpp: 57,425; perl: 560; sh: 109; xml: 72; makefile: 62
file content (12 lines) | stat: -rwxr-xr-x 380 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

EXIT_CODE=0
for file in build/merkaartor-*.{dmg,zip,exe}; do
  # The glob may expand to non-existing file if one of the suffixes don't exist. Ignore those and only upload existing artifacts.
  if [ -e "$file" ]; then
    cloudsmith push raw --version "@VCS_DESCRIBE@" merkaartor/merkaartor-nightly "$file"
    [ $? -ne 0 ] && EXIT_CODE=1
  fi
done

exit ${EXIT_CODE}