1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

Tech | Middleware from GitHub packages and new CI configuration (#1498)

This commit is contained in:
Evgenii Kozlov 2021-05-27 16:48:52 +03:00 committed by GitHub
parent 06e6e61d07
commit b9a1a0a2de
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 62 additions and 12 deletions

23
middleware2.sh Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
TOKEN=$1
USER=$2
GITHUB_USER_PROPERTY="gpr.usr"
GITHUB_KEY_PROPERTY="gpr.key"
if [ "$TOKEN" = "" ]; then
echo "ERROR: token is empty"
exit 1
fi;
if [ "$USER" = "" ]; then
echo "ERROR: user is empty"
exit 1
fi;
rm -rf github.properties
touch github.properties
echo "$GITHUB_USER_PROPERTY=$USER" >> github.properties
echo "$GITHUB_KEY_PROPERTY=$TOKEN" >> github.properties