-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (31 loc) · 942 Bytes
/
dart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Dart
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.24.2
- run: flutter --version
- run: flutter pub get
- run: flutter build apk --debug --split-per-abi -t lib/main.dart
- run: flutter build appbundle
- name: Push to Releases
uses: oberhauser-dev/flutter-release-action@v0
with:
app-name: 'Weather App'
tag: v1.0.${{ github.run_number }}
token: ${{ secrets.TOKEN }}