mirror of
https://github.com/xodio/xod.git
synced 2026-03-15 05:06:59 +01:00
18 lines
581 B
Bash
Executable File
18 lines
581 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ev
|
|
|
|
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
|
|
node tools/extract-release-notes.js "${tag#v}" \
|
|
<CHANGELOG.md >packages/xod-client-electron/dist/RELEASE_NOTES.md
|
|
find packages/xod-client-electron/dist -maxdepth 1 -type f \
|
|
-exec node tools/electron-upload.js \
|
|
--config="$config" --file={} --tag="$tag" \;
|
|
done <<<"$tags"
|
|
fi
|