Merge pull request #156 from Semper-Viventem/master #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'oracle' | |
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 |