-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (51 loc) · 1.52 KB
/
release.yml
File metadata and controls
57 lines (51 loc) · 1.52 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
name: Generate release
on:
push:
tags:
- '*'
jobs:
build_windows:
strategy:
matrix:
os: [{runner: windows-2022, kind: windows, version: 11}, {runner: windows-2019, kind: windows, version: 10}]
name: Build ${{ matrix.os.kind }} ${{ matrix.os.version }}
runs-on: ${{ matrix.os.runner }}
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter config --enable-windows-desktop
- run: flutter build windows --release
working-directory: ./src/icarus_editor
- uses: actions/upload-artifact@v4
with:
name: icarus_editor_windows${{ matrix.os.version }}
path: ./src/icarus_editor/build/windows/x64/runner/Release/
create_release:
needs: [build_windows]
name: Publish packages
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: .
- name: Create Windows 10 archive
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: '../windows-10-x64.zip'
directory: 'icarus_editor_windows10/'
- name: Create Windows 11 archive
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: '../windows-11-x64.zip'
directory: 'icarus_editor_windows11/'
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "*.zip,*.tar.gz"