Skip to content

Add onboarding

Add onboarding #2

name: Deploys mobile targets to GitHub Releases on merge
'on':
push:
branches:
- main
jobs:
build_mobile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Decode Keystore
env:
ENCODED_STRING: ${{ secrets.SIGNING_KEY_STORE_BASE64 }}
SIGNING_KEY_STORE_PATH: ${{ secrets.SIGNING_KEY_STORE_PATH }}
run: |
echo $ENCODED_STRING > keystore-b64.txt
base64 -d keystore-b64.txt > $SIGNING_KEY_STORE_PATH
- name: Get dependencies
run: cd app && flutter pub get && dart run build_runner build --delete-conflicting-outputs --release
- name: Build Release App bundle
env:
SIGNING_KEY_STORE_PATH: ${{ secrets.SIGNING_KEY_STORE_PATH }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
run: cd app && flutter build appbundle
# TODO: iOS build
- name: Upload Release Build to Artifacts
uses: actions/upload-artifact@v4
with:
name: release-android
path: app/build/app/outputs/bundle/app.aab
- name: Create Github Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
prerelease: true
files: app/build/app/outputs/bundle/app.aab