-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild-jar
More file actions
executable file
·24 lines (20 loc) · 810 Bytes
/
build-jar
File metadata and controls
executable file
·24 lines (20 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
if [ "$GITHUB_TOKEN" = "" ]; then
echo "You must specify a Github token using the env variable \$GITHUB_TOKEN.
If you don't have a token, generate one at https://github.com/settings/tokens"
exit -1
fi
if [ "$SLACK_WEBHOOK_URL" = "" ]; then
echo "You must specify a Slack webhook URL using the env variable \$SLACK_WEBHOOK_URL.
If you don't have one yet, generate it at https://slack.com/apps/new/A0F7XDUAZ-incoming-webhooks"
exit -1
fi
# create a config file with the token and url
echo "github.token=$GITHUB_TOKEN" > resources/config.properties
echo "slack.webhook.url=$SLACK_WEBHOOK_URL" >> resources/config.properties
echo "Creating uberjar:"
echo
lein uberjar
cp $PWD/target/uberjar/tako-*-standalone.jar $PWD/target/tako.jar
echo
echo "File to upload to AWS: $PWD/target/tako.jar"