Skip to content

Commit

Permalink
Upload APK as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mabe committed Jul 30, 2023
1 parent d26c25c commit 18f282c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: Build Flutter App

run-name: ${{ github.actor }} is building the app 🚀

on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- 'main'
paths-ignore:
- '**.md'
- 'doc/**'
- '.git/'
- '.vscode/'
on: [push]
# pull_request:
# types:
# - opened
# - reopened
# - synchronize
# - ready_for_review
# branches:
# - 'main'
# paths-ignore:
# - '**.md'
# - 'doc/**'
# - '.git/'
# - '.vscode/'

jobs:
Build:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build Flutter App

run-name: ${{ github.actor }} is creating a new release 🚀

on: [push]
# pull_request:
# types:
# - opened
# - reopened
# - synchronize
# - ready_for_review
# branches:
# - 'main'
# paths-ignore:
# - '**.md'
# - 'doc/**'
# - '.git/'
# - '.vscode/'

jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Build APK and AppBundle
uses: actions/checkout@v3
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
uses: subosito/flutter-action@v2
with:
channel: 'stable'
run: flutter pub get
# - run: flutter test
run: flutter build apk
run: flutter build appbundle
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dist-without-markdown
path: |
build/app/outputs/flutter-apk/app-debug.apk

0 comments on commit 18f282c

Please sign in to comment.