Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin committed Oct 24, 2024
1 parent eecdaa8 commit 82654b2
Showing 1 changed file with 34 additions and 6 deletions.
40 changes: 34 additions & 6 deletions .github/workflows/build-test-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,25 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Store unsigned F-Droid release APK
- name: Sign F-Droid APK
uses: r0adkll/sign-android-release@v1
id: sign_fdroid_apk
with:
releaseDirectory: app/build/outputs/apk/fdroid/release
signingKeyBase64: ${{ secrets.APK_SIGNING_KEYSTORE_FILE }}
alias: key0
keyStorePassword: ${{ secrets.APK_SIGNING_KEYSTORE_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Rename F-Droid APK file
run: mv ${{steps.sign_fdroid_apk.outputs.signedReleaseFile}} orgzly-revived-fdroid-${{ env.COMMIT_SHA }}.apk

- name: Store F-Droid release APK
uses: actions/upload-artifact@v4
with:
name: ${{ env.COMMIT_SHA }}-fdroid-unsigned-release.apk
path: app/build/outputs/apk/fdroid/release/*.apk
name: orgzly-revived-fdroid-${{ env.COMMIT_SHA }}.apk
path: orgzly-revived-fdroid-${{ env.COMMIT_SHA }}.apk

# "Premium" APK

Expand All @@ -59,8 +73,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Store unsigned Premium release APK
- name: Sign "premium" APK
uses: r0adkll/sign-android-release@v1
id: sign_premium_apk
with:
releaseDirectory: app/build/outputs/apk/premium/release
signingKeyBase64: ${{ secrets.APK_SIGNING_KEYSTORE_FILE }}
alias: key0
keyStorePassword: ${{ secrets.APK_SIGNING_KEYSTORE_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Rename "premium" APK file
run: mv ${{steps.sign_premium_apk.outputs.signedReleaseFile}} orgzly-revived-premium-${{ env.COMMIT_SHA }}.apk

- name: Store "premium" release APK
uses: actions/upload-artifact@v4
with:
name: ${{ env.COMMIT_SHA }}-premium-unsigned-release.apk
path: app/build/outputs/apk/premium/release/*.apk
name: orgzly-revived-premium-${{ env.COMMIT_SHA }}.apk
path: orgzly-revived-premium-${{ env.COMMIT_SHA }}.apk

0 comments on commit 82654b2

Please sign in to comment.