Skip to content

Commit

Permalink
add signing action
Browse files Browse the repository at this point in the history
  • Loading branch information
Drzaln committed Jan 28, 2021
1 parent 0e47861 commit 8b69f1b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,45 @@ jobs:
steps:
- name: Checkout to Action V2
uses: actions/checkout@v2

- name: Checkout Node JS
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install npm dependencies
run: |
npm install
- name: Make gradlew executable
run: cd android && chmod +x ./gradlew

- name: Build Android Release
run: |
cd android && ./gradlew assembleRelease
- name: Upload Artifact
- name: Build Android App Bundle
run: |
cd android && ./gradlew bundleRelease --no-daemon
- name: Sign App Bundle
id: sign_app
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: android/app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
alias: ${{ secrets.ANDROID_SIGNING_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}

- name: Upload Artifact APK
uses: actions/upload-artifact@v2
with:
name: RnFootball-apk
path: android/app/build/outputs/apk/release/app-release.apk
path: android/app/build/outputs/apk/release/app-release.apk

- name: Upload Artifact Bundle
uses: actions/upload-artifact@v2
with:
name: Signed App Bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ local.properties
node_modules/
npm-debug.log
yarn-error.log
my-upload-key.keystore
some_signing_key.jks.base64.txt

# BUCK
buck-out/
Expand Down

0 comments on commit 8b69f1b

Please sign in to comment.