-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (36 loc) · 1.08 KB
/
windows-release.yml
File metadata and controls
45 lines (36 loc) · 1.08 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
name: Windows Release
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.27.3'
channel: 'stable'
cache: true
- name: Get dependencies
run: flutter pub get
- name: Enable windows build
run: flutter config --enable-windows-desktop
- name: Build
run: flutter build windows --release
- name: Create ZIP archive
run: |
cd build/windows/x64/runner
Compress-Archive -Path Release/* -DestinationPath ../../../Begzar-Windows-x64.zip
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: build/Begzar-Windows-x64.zip
draft: false
prerelease: false
generate_release_notes: true
tag_name: v1.0.${{ github.run_number }}-beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}