Skip to content

Change key.properties path #32

Change key.properties path

Change key.properties path #32

Workflow file for this run

name: Android Release
# 1
on:
# 2
push:
tags:
- '*'
# 3
workflow_dispatch:
# 4
jobs:
# 5
build:
# 6
runs-on: ubuntu-latest
permissions: write-all
# 7
steps:
# 8
- uses: actions/checkout@v3
with:
fetch-depth: 0
# 9
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "17"
cache: 'gradle'
# 10
- uses: subosito/flutter-action@v2
with:
# 11
flutter-version: "3.16.3"
channel: 'stable'
cache: true
- name: Create key.properties
run: |
echo keyPassword=\${{ secrets.KEY_PASSWORD }} > ./android/key.properties
echo storePassword=\${{ secrets.KEY_STORE_PASSWORD }} >> ./android/key.properties
echo keyAlias=\${{ secrets.KEY_ALIAS }} >> ./android/key.properties
- name: Load key
run: echo "${{ secrets.KEYSTORE_JKS_RELEASE }}" | base64 --decode > android/app/release-key.jks
- name: Extract version from tag
uses: damienaicheh/extract-version-from-tag-action@v1.1.0
- name: Pub Get Packages
run: "flutter pub get"
- name: Build APPBUNDLE
run: "flutter build appbundle --build-name=${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}"
- name: Build APK
run: "flutter build apk --split-per-abi --build-name=${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}"
- name: Create Github Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/bundle/release/*.aab,build/app/outputs/flutter-apk/*.apk"
# tag: $GIT_TAG_NAME
# token: ${{ secrets.PERSONAL_RELEASE_TOKEN }}