mirror of
https://github.com/xodio/xod.git
synced 2026-03-21 16:16:55 +01:00
18 lines
462 B
Bash
Executable File
18 lines
462 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ev
|
|
|
|
yarn run verify
|
|
|
|
tags=$(git tag --points-at "$TRAVIS_COMMIT")
|
|
if [ -n "$tags" ]; then
|
|
yarn run electron-dist
|
|
config=$(mktemp)
|
|
echo "$GOOGLE_CLOUD_STORAGE_CONFIG" | base64 --decode >"$config"
|
|
while read -r tag; do
|
|
find packages/xod-client-electron/dist -maxdepth 1 -type f \
|
|
-exec node tools/electron-upload.js \
|
|
--config="$config" --file={} --tag="$tag" \;
|
|
done <<<"$tags"
|
|
fi
|