Skip to content

Commit

Permalink
Add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JingMatrix committed Sep 19, 2024
1 parent 59161cd commit 2110c9f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
47 changes: 47 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Android CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@main
- name: set up JDK 21
uses: actions/setup-java@main
with:
java-version: '21'
distribution: 'temurin'

- name: Build with Gradle
run: ./gradlew app:assembleRelease

- name: Rename signed apk
run: mv app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/Pixelify_GPhotos.apk

- uses: noriban/sign-android-release@master
name: Sign app APK
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}

- name: Upload signed APK
uses: actions/upload-artifact@main
with:
name: Pixelify_GPhotos.apk
path: ${{steps.sign_app.outputs.signedReleaseFile}}

- name: Collect signed APK
uses: actions/download-artifact@main
with:
name: Pixelify_GPhotos.apk

0 comments on commit 2110c9f

Please sign in to comment.