-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (43 loc) · 1.5 KB
/
release_windows.yaml
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
name: Release Windows
on:
workflow_dispatch:
jobs:
build_windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install OpenSSL and InnoSetup and zip
run: |
choco install openssl --no-progress
choco install innosetup --no-progress
choco install zip --no-progress
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'
flutter-version: 3.13.0-0.2.pre
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path
architecture: x64 # optional, x64 or arm64
- run: flutter --version
- name: Build for Windows
run: flutter build windows --release
- name: Package as exe
run: iscc innosetup/setup.iss
- name: Upload to artifact
uses: actions/upload-artifact@v3
with:
name: aimigo.exe
path: innosetup/output/release/aimigo.exe
- name: Package as zip
run: |
cd build/windows/runner/Release
zip -q -r ../aimigo_windows.zip ./*
cd ../../../../
- name: Upload to artifact
uses: actions/upload-artifact@v3
with:
name: aimigo_windows.zip
path: build/windows/runner/aimigo_windows.zip