-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
079b0dd
commit e1556a4
Showing
2 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Pull Request Check | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'app/**' | ||
- 'gradle/**' | ||
- '.github/workflows/**' | ||
- '*.gradle.kts' | ||
- 'gradle.properties' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
|
||
- name: Setup Android environment | ||
uses: android-actions/setup-android@v3 | ||
|
||
- name: Decode Keystore | ||
uses: timheuer/base64-to-file@v1 | ||
id: android_keystore | ||
with: | ||
fileName: "android_keystore.jks" | ||
encodedString: ${{ secrets.SIGNING_KEY }} | ||
|
||
- name: Build APK with Gradle | ||
run: | | ||
chmod +x gradlew | ||
./gradlew assembleSnapshot -Pandroid.injected.signing.store.file=${{ steps.android_keystore.outputs.filePath }} -Pandroid.injected.signing.store.password=${{ secrets.KEY_STORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.KEY_PASSWORD }} | ||
- name: Upload APK artifact | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ success() }} | ||
with: | ||
name: app-snapshot | ||
path: ${{ github.workspace }}/app/build/outputs/apk/snapshot/ |