Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
Github actions to build
Browse files Browse the repository at this point in the history
  • Loading branch information
daper committed Aug 17, 2020
1 parent f85b9ef commit 914d8c3
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 5 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build commit

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: npm ci
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Prepare Signing Files
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
ALIAS: ${{ secrets.ALIAS }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: |
./tools/prepare-sign-for-ci.sh
- name: Build Release
id: buildRelease
run: |
cd android \
&& echo "ndk.dir=${ANDROID_HOME}/ndk-bundle" >> local.properties \
&& ./gradlew assembleRelease bundleRelease
- name: Upload Artifacts
id: uploadArtifact
uses: actions/upload-artifact@v2
with:
name: release
path: |
android/app/build/outputs/bundle/release/app-release.aab
android/app/build/outputs/apk/release/app-release.apk
5 changes: 0 additions & 5 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,3 @@ android.enableJetifier=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.37.0

MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
MYAPP_RELEASE_STORE_PASSWORD=wd2f7x3h
MYAPP_RELEASE_KEY_PASSWORD=wd2f7x3h

This comment has been minimized.

Copy link
@mrohnstock

mrohnstock Aug 18, 2020

hm, hope you changed the password in the meanwhile...?

11 changes: 11 additions & 0 deletions tools/prepare-sign-for-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

echo "${SIGNING_KEY}" \
| base64 -d > android/app/my-release-key.keystore

cat <<-EOF >> android/gradle.properties
MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
MYAPP_RELEASE_KEY_ALIAS=${ALIAS}
MYAPP_RELEASE_STORE_PASSWORD=${KEY_STORE_PASSWORD}
MYAPP_RELEASE_KEY_PASSWORD=${KEY_PASSWORD}
EOF

0 comments on commit 914d8c3

Please sign in to comment.