-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (93 loc) · 2.44 KB
/
release.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: release
on:
push:
tags:
- '*'
jobs:
linux:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev
- run: flutter build linux
- name: Zips the build
uses: vimtor/action-zip@v1
with:
files: tile_patcher/build/linux/x64/release/bundle/
dest: tp_linux.zip
- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: tp_linux
path: tp_linux.zip
mac:
runs-on: macos-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- run: flutter build macos
- name: Zips the build
run: cd build/macos/Build/Products/Release/ && zip -r tp_osx.zip Tile\ Patcher.app
- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: tp_osx
path: build/macos/Build/Products/Release/tp_osx.zip
windows:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter build windows
- name: Zips the build
uses: vimtor/action-zip@v1
with:
files: tile_patcher/build/windows/runner/Release/
dest: tp_windows.zip
- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: tp_windows
path: tp_windows.zip
release_desktop:
needs: [linux, mac, windows]
runs-on: ubuntu-latest
steps:
- name: Download Linux artifact
uses: actions/download-artifact@v2
with:
name: tp_linux
- name: Download Mac artifact
uses: actions/download-artifact@v2
with:
name: tp_osx
- name: Download Windows artifact
uses: actions/download-artifact@v2
with:
name: tp_windows
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
tp_linux.zip
tp_osx.zip
tp_windows.zip
prerelease: true