Skip to content

Commit

Permalink
Update GitHub Actions workflows to work with different product flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaakko committed Jan 28, 2024
1 parent 60a8960 commit e3aefd2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ on:

jobs:
build:
name: Build debug APK
strategy:
matrix:
version: [full, fdroid]
name: Build debug APK (${{ matrix.version }})
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
Expand All @@ -17,10 +21,10 @@ jobs:
- name: Build debug APK
uses: gradle/[email protected]
with:
arguments: buildDebug
arguments: build${{ matrix.version }}Debug
- name: Upload debug APK as artifact
uses: actions/upload-artifact@v4
with:
name: app-debug.apk
path: app/build/outputs/apk/debug/app-debug.apk
name: app-${{ matrix.version }}-debug.apk
path: app/build/outputs/apk/${{ matrix.version }}/debug/app-${{ matrix.version }}-debug.apk
retention-days: 1
4 changes: 2 additions & 2 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
run: ./gradlew assembleRelease
run: ./gradlew assembleFullRelease
- name: Upload APK as an asset to the GitHub release
uses: softprops/action-gh-release@v1
with:
files: app/build/outputs/apk/release/app-release.apk
files: app/build/outputs/apk/full/release/app-full-release.apk

0 comments on commit e3aefd2

Please sign in to comment.