Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
N1BRI authored May 10, 2024
1 parent 7ea2410 commit cd89fd7
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 @@
name: "Build & Release"
on:
pull_request:
branches:
- main
- master
push:
branches:
- main
- master
- develop

jobs:
build:
name: Build & Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.2.3'
- run: flutter pub get
- run: flutter analyze
- run: flutter test
- run: flutter build apk --debug --split-per-abi
- name: Push to Release
- uses: ncipollo/release-action@v1
with:
artifacts: "build/app/output/apk/debug/*"
tag: v1.0.${{github.run_number}}
token: ${{ secrets.TOKEN }}

0 comments on commit cd89fd7

Please sign in to comment.