-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (46 loc) · 1.51 KB
/
main.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 CI
on:
release:
types: [published]
jobs:
build-and-release-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
flutter-version: '3.19.x'
- name: Build artifacts
run: flutter build windows --release
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: Sebastian-${{github.ref_name}}-windows.zip
directory: build/windows/x64/runner/Release
- name: Windows Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/windows/x64/runner/Release/Sebastian-${{github.ref_name}}-windows.zip
build-and-release-macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
flutter-version: '3.19.x'
- name: Build artifacts
run: flutter build macos --release
- name: Archive Release
working-directory: build/macos/Build/Products/Release
run: zip --symlinks -qr Sebastian-${{github.ref_name}}-macos.zip Sebastian.app
- name: macOS Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/macos/Build/Products/Release/Sebastian-${{github.ref_name}}-macos.zip