Skip to content

Test

Test #23

Workflow file for this run

name: Test
on:
# push:
# branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.3'
channel: 'stable'
cache: true
- name: 🔐 Retrieve base64 keystore and decode it to a file
run: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > "${{ github.workspace }}/android-keystore.jks"
- name: 📝🔐 Create key.properties file
env:
KEYSTORE_PROPERTIES_PATH: ${{ github.workspace }}/android/key.properties
run: |
echo 'storeFile=${{ github.workspace }}/android-keystore.jks' > $KEYSTORE_PROPERTIES_PATH
echo 'keyAlias=${{ secrets.KEYSTORE_KEY_ALIAS }}' >> $KEYSTORE_PROPERTIES_PATH
echo 'storePassword=${{ secrets.KEYSTORE_PASSWORD }}' >> $KEYSTORE_PROPERTIES_PATH
echo 'keyPassword=${{ secrets.KEYSTORE_KEY_PASSWORD }}' >> $KEYSTORE_PROPERTIES_PATH
- name: flutter pub get
run: flutter pub get
- name: flutter build apk
run: flutter build apk
- name: flutter build appbundle
run: flutter build appbundle
- name: 'Upload apk'
uses: actions/upload-artifact@v4
with:
name: yana
path: build/app/outputs/flutter-apk
# - name: 'Upload appbundle'
# uses: actions/upload-artifact@v2
# with:
# name: yana-appbundle
# path: build/app/outputs/bundle/release/app-release.aab