diff --git a/.github/workflows/hello_world_build.yml b/.github/workflows/hello_world_build.yml new file mode 100644 index 00000000..484bd252 --- /dev/null +++ b/.github/workflows/hello_world_build.yml @@ -0,0 +1,76 @@ +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 + - uses: bluefireteam/melos-action@v3 + - 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 + - uses: bluefireteam/melos-action@v3 + - run: | + dart ../../packages/flutter_distributor/bin/main.dart package \ + --platform=android \ + --targets apk + working-directory: examples/hello_world + + build-appimage: + name: Build AppImage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3.22.2 + - uses: bluefireteam/melos-action@v3 + - run: | + wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" + chmod +x appimagetool + mv appimagetool /usr/local/bin/ + - run: | + dart ../../packages/flutter_distributor/bin/main.dart package \ + --platform=linux \ + --targets appimage + working-directory: examples/hello_world + + build-deb: + name: Build DEB + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3.22.2 + - uses: bluefireteam/melos-action@v3 + - run: | + dart ../../packages/flutter_distributor/bin/main.dart package \ + --platform=linux \ + --targets deb + working-directory: examples/hello_world diff --git a/examples/hello_world/distribute_options.yaml b/examples/hello_world/distribute_options.yaml index fbb21493..059cdb34 100644 --- a/examples/hello_world/distribute_options.yaml +++ b/examples/hello_world/distribute_options.yaml @@ -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