-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.14 KB
/
window_release.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
name: Window Installer
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "12.x"
cache: 'gradle'
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.2"
channel: 'stable'
cache: true
- name: Get dependencies
run: flutter --disable-telemetry && flutter pub get && flutter doctor || true
- name: Get dependencies example app
working-directory: example
run: flutter pub get && flutter create --platforms=windows .
- name: Install NSIS
run: choco install nsis -y # If using Chocolatey, or use an alternative method to install NSIS
- name: Start build
working-directory: example
run: flutter build windows
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: Window - Release
path: example/build/windows/runner/Release/example.exe