Skip to content

Commit

Permalink
Deploy APKs on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
mueller-ma committed Apr 1, 2023
1 parent fa7cccc commit 85e62b3
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/deploy-apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy APK on GitHub

on:
release:
types:
- created

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 11

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1.0.6

- name: Build APK
run: bash gradlew app:assembleRelease

- uses: r0adkll/sign-android-release@v1.0.4
name: Sign APK
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: "key0"
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}

- uses: svenstaro/upload-release-action@v2
name: Upload APK
with:
file: ${{steps.sign_app.outputs.signedReleaseFile}}
asset_name: mute_reminder.apk
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

A notification is shown if ringtone is muted, but media isn't and media would be played over local speakers.

[<img src="assets/get-it-on-fdroid.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/de/packages/com.github.muellerma.mute_reminder/)
[<img alt="Get it on F-Droid" height="80" src="https://raw.githubusercontent.com/mueller-ma/android-common/main/assets/get-it-on-fdroid.png"/>](https://f-droid.org/de/packages/com.github.muellerma.mute_reminder/)[<img alt="Download from GitHub" height="80" src="https://raw.githubusercontent.com/mueller-ma/android-common/main/assets/direct-apk-download.png"/>](https://github.com/mueller-ma/MuteReminder/releases)

<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/1.png" alt="Screenshot" width=200px>

Expand Down
Binary file removed assets/get-it-on-fdroid.png
Binary file not shown.

0 comments on commit 85e62b3

Please # to comment.