-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.11 KB
/
flutterWindows.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
name: Flutter Deploy - Windows
permissions:
contents: write
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: 'build-windows'
cancel-in-progress: true
on:
workflow_dispatch:
push:
tags:
- '0.*'
- '1.*'
jobs:
build:
runs-on: windows-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v1
with:
channel: 'master' # 'stable', 'beta', 'dev' or 'master'
- name: Write env file
env:
ENV_DART: ${{ secrets.ENV_DART }}
run: |
$Env:ENV_DART | Out-File ./lib/env.dart
- name: Build Windows release version
run: flutter build windows --release
- name: Building the installer
shell: cmd
run: |
"%programfiles(x86)%\Inno Setup 6\iscc.exe" "assistantDKM.iss"
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: AssistantDKM_setup
path: 'installers/AssistantDKM_setup.exe'