Skip to content

new user agent

new user agent #18

Workflow file for this run

name: Build APKs
on: [push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
env:
STORE_FILE: "/tmp/keystore.jks"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run read-yaml action
id: yaml
uses: jbutcher5/read-yaml@main
with:
file: './pubspec.yaml' # File to read from
key-path: '["version"]' # Access the runs key then the using key and retuns the value.
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Flutter
id: flutter-action
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
- name: Build KeyStore
run: echo ${{ secrets.STORE_BASE64 }} | base64 -d > ${{ env.STORE_FILE }}
- name: Build Flutter
env:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
STORE_FILE: ${{ env.STORE_FILE }}
run: flutter build apk --split-per-abi --target-platform android-arm64 --split-debug-info build/app/outputs/symbols
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: ./build/app/outputs/flutter-apk/app-*-release.apk
artifactContentType: application/vnd.android.package-archive
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ steps.yaml.outputs.data }}
allowUpdates: true