Skip to content

Merge pull request #62 from Semper-Viventem/master #9

Merge pull request #62 from Semper-Viventem/master

Merge pull request #62 from Semper-Viventem/master #9

name: Android CI
on:
push:
branches: [ "release" ]
jobs:
build:
name: 'Publish release build'
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build apk
env:
RELEASE_STORE_PASSWORD: ${{ secrets.RELEASE_STORE_PASSWORD }}
RELEASE_STORE_PATH: ${{ secrets.RELEASE_STORE_PATH }}
RELEASE_STORE_KEY: ${{ secrets.RELEASE_STORE_KEY }}
RELEASE_STORE_KEY_PASSWORD: ${{ secrets.RELEASE_STORE_KEY_PASSWORD }}
run: ./gradlew assembleGithubRelease
- name: Release to Github
uses: ./.github/actions/publish-release-apk
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
APP_FOLDER: app
RELEASE_TITLE: Release Build
REPO_BRANCH: release
BUILD_TYPE: release
BUILD_FLAVOR: github
- name: Build aab
env:
RELEASE_STORE_PASSWORD: ${{ secrets.RELEASE_STORE_PASSWORD }}
RELEASE_STORE_PATH: ${{ secrets.RELEASE_STORE_PATH }}
RELEASE_STORE_KEY: ${{ secrets.RELEASE_STORE_KEY }}
RELEASE_STORE_KEY_PASSWORD: ${{ secrets.RELEASE_STORE_KEY_PASSWORD }}
run: ./gradlew bundleGooglePlayRelease
- name: Release to GooglePlay
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: f.cking.software
releaseFiles: app/build/outputs/bundle/googlePlayRelease/app-googlePlay-release.aab
track: production
mappingFile: app/build/outputs/mapping/googlePlayRelease/mapping.txt