-
Notifications
You must be signed in to change notification settings - Fork 124
94 lines (77 loc) · 2.34 KB
/
build.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
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
name: Build/release
on: push
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Build/release app
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
- name: List Files
shell: bash
run: ls -lah dist
- name: Upload Postbird.dmg
uses: actions/upload-artifact@v2
with:
name: Postbird.dmg
path: dist/*.dmg
if: ${{ runner.os == 'macOS' }}
- name: Upload Postbird_setup.exe
uses: actions/upload-artifact@v2
with:
name: Postbird_setup.exe
path: dist/*.exe
if: ${{ runner.os == 'Windows' }}
- name: Upload Postbird-win.zip
uses: actions/upload-artifact@v2
with:
name: Postbird_win.zip
path: dist/*.zip
if: ${{ runner.os == 'Windows' }}
- name: Upload Postbird.snap
uses: actions/upload-artifact@v2
with:
name: Postbird.snap
path: dist/*.snap
if: ${{ runner.os == 'Linux' }}
- name: Upload Postbird.AppImage
uses: actions/upload-artifact@v2
with:
name: Postbird.AppImage
path: dist/Postbird*.AppImage
if: ${{ runner.os == 'Linux' }}
- name: Upload Postbird.deb
uses: actions/upload-artifact@v2
with:
name: Postbird.deb
path: dist/*.deb
if: ${{ runner.os == 'Linux' }}
- name: Upload Postbird.rpm
uses: actions/upload-artifact@v2
with:
name: Postbird.rpm
path: dist/*.rpm
if: ${{ runner.os == 'Linux' }}
- name: Upload Postbird.pacman
uses: actions/upload-artifact@v2
with:
name: Postbird.pacman
path: dist/*.pacman
if: ${{ runner.os == 'Linux' }}
- name: Upload Postbird.apk
uses: actions/upload-artifact@v2
with:
name: Postbird.apk
path: dist/*.apk
if: ${{ runner.os == 'Linux' }}