Skip to content

Commit

Permalink
Update ci deps and enable build cache (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 authored Oct 27, 2022
1 parent c597da9 commit 680aba4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,31 @@ name: Android CI
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v1
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
cache: 'gradle'

- name: Build with Gradle
run: bash ./gradlew assembleRelease
- uses: r0adkll/sign-android-release@v1
name: Sign app APK
run: ./gradlew assembleRelease

- name: Sign app APK
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
uses: r0adkll/sign-android-release@v1
# ID used to access action output
id: sign_app
with:
Expand All @@ -27,12 +36,10 @@ jobs:
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
#env:
#// override default build-tools version (29.0.3) -- optional
#BUILD_TOOLS_VERSION: "30.0.2"

# Example use of `signedReleaseFile` output -- not needed
- uses: actions/upload-artifact@v2

- name: Upload artifact
if: steps.sign_app.outcome == 'success'
uses: actions/upload-artifact@v3
with:
name: Signed app bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 680aba4

Please sign in to comment.