Skip to content

Commit

Permalink
Build Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
joaojsrbr committed May 11, 2022
1 parent fac509c commit c0deab4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
pull_request:
branches:
- origin
push:
branches:
- origin

name: "Build & Release"

jobs:
build:
name: Build & Release
runs-on: macos-latest
env:
JAVA_VERSION: "11.0"
FLUTTER_VERSION: "2.10.5"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{env.JAVA_VERSION}}
- uses: subosito/flutter-action@v2
with:
channel: 'beta'
- run: flutter pub get
# - run: flutter analyze
- run: flutter build apk --release
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/flutter-apk/*.apk"
tag: v1.0.${{ github.run_number }}
token: ${{ secrets.TOKEN }}

0 comments on commit c0deab4

Please sign in to comment.