-
-
Notifications
You must be signed in to change notification settings - Fork 42
64 lines (47 loc) · 1.96 KB
/
checkout.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: "Build & Check"
on:
push:
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'CODE_OF_CONDUCT.md'
- './fastlane/**'
branches: main
jobs:
build:
name: Build & Check
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup-Java
uses: actions/setup-java@v3.12.0
with:
distribution: 'oracle'
java-version: '17'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.0'
channel: 'stable'
- name: Install Dependencies
run: flutter pub get
- name: Build App files
run: flutter build apk --release --build-number ${{github.run_number}}
- name: Rename APK file
run: Rename-Item -Path "build/app/outputs/flutter-apk/app-release.apk" -NewName "bloomee_tunes_android_v2.10.7+${{github.run_number}}.apk"
- name: Build Windows App
run: flutter build windows --release --build-number ${{github.run_number}}
- name: Rename file
run: Rename-Item -Path "build/windows/x64/runner/Release/bloomee.exe" -NewName "Bloomee.exe"
- name: ZIP build
run: Compress-Archive -Path build/windows/x64/runner/Release/* -Destination build/windows/x64/bloomee_tunes_windows_x64_v2.10.7+${{github.run_number}}.zip
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Release
path: |
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.10.7+${{github.run_number}}.apk
build/windows/x64/bloomee_tunes_windows_x64_v2.9.9+${{github.run_number}}.zip