Skip to content

Commit

Permalink
release app on github
Browse files Browse the repository at this point in the history
the release can be further customized with the provided actions
References synyx#43
  • Loading branch information
Patrick Helm committed Oct 2, 2022
1 parent 32058b5 commit ca1bd68
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ on: [push, pull_request]
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
cache: 'gradle''
- name: Build with Gradle
run: ./gradlew build
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-22.04

steps:
- 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: ./gradlew buildRelease
- name: Sign app
uses: ilharp/sign-android-release@v1
id: sign_app
with:
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }}
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: ${{steps.sign_app.outputs.signedFile}}

0 comments on commit ca1bd68

Please sign in to comment.