Skip to content

Commit

Permalink
Add sign apk in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LionZXY authored Aug 29, 2020
1 parent ba337da commit c963789
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build release
run: ./gradlew assembleRelease
- name: Sign release
id: sign_release
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.KEY_ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_ALIAS_PASSWORD }}
- uses: actions/upload-artifact@v2
name: Publish APK in releases
with:
name: Flipper-App
path: app/build/outputs/apk/release/app-release-unsigned.apk
path: ${{ steps.sign_release.outputs.signedReleaseFile }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -38,6 +47,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: app/build/outputs/apk/release/app-release-unsigned.apk
asset_path: ${{ steps.sign_release.outputs.signedReleaseFile }}
asset_name: FlipperApp.apk
asset_content_type: application/zip

0 comments on commit c963789

Please sign in to comment.