-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.57 KB
/
build.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
on:
push:
branches:
- main
- master
name: "Build & Release"
jobs:
build:
name: Build & Release
runs-on: windows-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Java Setup 🔎
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Flutter Setup
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: '3.24.4'
- name: Dependencies install
run: flutter pub get
- name: Integration Test 🧪
run: flutter test -d windows integration_test\app_test.dart
- name: Building exe for Windows ⚡
run: flutter build windows --release --build-name 1.1.${{ github.run_number }} --build-number ${{ github.run_number }}
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: Sangeet-v1.1.${{ github.run_number }}_windows_x64.zip
directory: build/windows/x64/runner/Release
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/windows/x64/runner/Release/Sangeet-v1.1.${{ github.run_number }}_windows_x64.zip"
tag: v1.1.${{ github.run_number }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
generateReleaseNotes: true