Skip to content

Merge pull request #271 from aivanovski/feeature/refactor-test-data-r… #33

Merge pull request #271 from aivanovski/feeature/refactor-test-data-r…

Merge pull request #271 from aivanovski/feeature/refactor-test-data-r… #33

Workflow file for this run

name: Publish to Github and Google Play
on:
push:
branches: master
tags:
- '*.*.*'
jobs:
publish-github-release:
name: Publish Github release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Decrypt and validate decrypted data
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: ./.github/workflows/decrypt-and-validate-data.sh
- name: Build debug and release apk's
run: |
./gradlew app:assembleFdroidDebug app:assembleFdroidRelease
- name: Store debug apk
uses: actions/upload-artifact@v3
with:
name: app-fdroid-debug.apk
path: |
./app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
- name: Store release apk
uses: actions/upload-artifact@v3
with:
name: app-fdroid-release.apk
path: |
./app/build/outputs/apk/fdroid/release/app-fdroid-release.apk
- name: Publish Github Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
prerelease: true
files: |
./app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
./app/build/outputs/apk/fdroid/release/app-fdroid-release.apk
upload-to-google-play:
name: Upload App Bundle to Google Play
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Decrypt and validate decrypted data
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: ./.github/workflows/decrypt-and-validate-data.sh
- name: Upload to Google Play
run: |
./gradlew publishGplayReleaseBundle