You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
534 B
25 lines
534 B
7 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
if [ -z "$GH_TOKEN" ]; then
|
||
|
echo "GH_TOKEN is unset. can't release" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
7 years ago
|
if [ ! -d "static/fonts/museosans" ]; then
|
||
|
echo "static/fonts/museosans is required for a release" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
7 years ago
|
if ! git diff-index --quiet HEAD --; then
|
||
|
echo "you have uncommitted local changes!" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
7 years ago
|
# TODO check if version is not already there
|
||
|
# TODO check if local git HEAD is EXACTLY our remote master HEAD
|
||
|
|
||
7 years ago
|
yarn compile
|
||
7 years ago
|
DEBUG=electron-builder yarn run electron-builder build --publish always
|