Skip to content

Commit

Permalink
wip: Add build hello world workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Jun 23, 2024
1 parent 228ce97 commit ff51879
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/hello_world_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "HelloWorld: Build"

on:
push:
branches: [main]
pull_request:
types: [opened, reopened]

jobs:
build-aab:
name: Build AAB
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.2
- run: |
dart ../../packages/flutter_distributor/bin/main.dart package \
--platform=android \
--targets aab
working-directory: examples/hello_world
build-apk:
name: Build APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.2
- run: |
dart ../../packages/flutter_distributor/bin/main.dart package \
--platform=android \
--targets apk
working-directory: examples/hello_world
2 changes: 1 addition & 1 deletion examples/hello_world/distribute_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
output: dist/
variables:
FLUTTER_ROOT: ~/fvm/versions/3.16.5
# FLUTTER_ROOT: ~/fvm/versions/3.16.5
# PGYER_API_KEY: your api key
releases:
- name: dev-profile
Expand Down

0 comments on commit ff51879

Please sign in to comment.