-
Notifications
You must be signed in to change notification settings - Fork 2.4k
79 lines (69 loc) · 1.85 KB
/
manual-windows-build.yml
File metadata and controls
79 lines (69 loc) · 1.85 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Manual Windows Build
on:
workflow_dispatch:
inputs:
upload-artifact:
type: boolean
description: 'Upload build artifacts to release'
default: true
tag-name:
type: string
description: 'Release tag name'
default: 'draft'
channel:
type: string
description: 'Build channel (dev/prod)'
default: 'dev'
env:
IS_GITHUB_ACTIONS: 1
jobs:
build-windows:
runs-on: windows-latest
permissions: write-all
env:
PATH: ${{ env.PATH }}:$HOME/.pub-cache/bin
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: subosito/flutter-action@v2.16.0
with:
flutter-version: '3.38.5'
channel: 'stable'
cache: true
- name: Install fastforge
run: |
echo "Installing fastforge..."
dart pub global activate fastforge
shell: bash
- name: Prepare Windows Build
run: make windows-prepare
shell: bash
- name: Build Windows Release
run: |
export PATH="$PATH:$HOME/.pub-cache/bin"
make windows-release
shell: bash
env:
CHANNEL: ${{ inputs.channel }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- name: Upload Artifacts
if: ${{ inputs.upload-artifact }}
uses: actions/upload-artifact@v4
with:
name: windows-builds
path: dist/
retention-days: 30
- name: Create Release
if: ${{ inputs.upload-artifact }}
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ inputs.tag-name }}
files: |
dist/**/*.exe
dist/**/*.msix
dist/**/*.zip
draft: true
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}