Skip to content

Commit

Permalink
More GitHub actions work.
Browse files Browse the repository at this point in the history
  • Loading branch information
zond committed Mar 5, 2020
1 parent d999e4f commit 47a4865
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Android CI
name: Build release

on:
push:
Expand All @@ -13,7 +13,7 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
Expand All @@ -23,7 +23,7 @@ jobs:
run: ./tools/download_keystore.sh
- name: Build with Gradle
env:
KEYSTORE: ${GITHUB_WORKSPACE}/android-diplicity/signing.keystore
KEYSTORE: $GITHUB_WORKSPACE/android-diplicity/signing.keystore
KEYSTORE_PASSWORD: ${{ secrets.keystorePassword }}
run: ./gradlew assembleRelease

6 changes: 5 additions & 1 deletion tools/download_keystore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

KEYSTORE="${GITHUB_WORKSPACE}/android-diplicity/signing.keystore"

if [ $KEYSTORE_URL == "" ]; then
echo "no keystore url set?"
fi

# use curl to download a keystore from $KEYSTORE_URI, if set,
# to the path/filename set in $KEYSTORE.
if [ "${KEYSTORE}" != "" ] && [ "${KEYSTORE_URI}" != "" ]; then
Expand All @@ -10,5 +14,5 @@ if [ "${KEYSTORE}" != "" ] && [ "${KEYSTORE_URI}" != "" ]; then
# expose the sensitive uri in the build logs:
curl -L -o ${KEYSTORE} ${KEYSTORE_URI}
else
echo "Keystore uri not set. .APK artifact will not be signed."
echo "Keystore uri not set. APK artifact will not be signed."
fi

0 comments on commit 47a4865

Please sign in to comment.