forked from revoltchat/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (87 loc) · 2.54 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
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
name: Build Packages
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Yarn
run: yarn install
- name: Build For Linux
id: build-linux
run: |
yarn build:bundle
yarn build:linux --publish never
- name: Pack Build Files
run: |
mkdir ~/Revolt-linux-AppImage
mv dist/*.AppImage ~/Revolt-linux-AppImage
mkdir ~/Revolt-linux
mv dist/*.tar.gz ~/Revolt-linux
- name: Publish AppImage
uses: actions/upload-artifact@v3
with:
path: ~/Revolt-linux-AppImage
name: Revolt-linux-AppImage
- name: Publish Tarfile
uses: actions/upload-artifact@v3
with:
path: ~/Revolt-linux/
name: Revolt-linux
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
- name: Install Yarn
run: yarn install
- name: Build For Windows
id: build-windows
run: |
yarn build:bundle
yarn build:windows --publish never
- name: Pack Build Files
run: |
mkdir D:\a\desktop\Revolt-windows
mv D:\a\desktop\desktop\dist\win-unpacked\* D:\a\desktop\Revolt-windows
mkdir D:\a\desktop\Revolt-windows-Setup
mv D:\a\desktop\desktop\dist\*.exe D:\a\desktop\Revolt-windows-Setup.exe
mkdir D:\a\desktop\Revolt-windows-appx
mv D:\a\desktop\desktop\dist\*.appx D:\a\desktop\Revolt-windows-appx
- name: Publish Zipfile
uses: actions/upload-artifact@v3
with:
path: D:\a\desktop\Revolt-windows
name: Revolt-windows
- name: Publish Installer
uses: actions/upload-artifact@v3
with:
path: D:\a\desktop\Revolt-windows-Setup.exe
name: Revolt-windows-Setup
- name: Publish Appx
uses: actions/upload-artifact@v3
with:
path: D:\a\desktop\Revolt-windows-appx
name: Revolt-windows-appx
build-macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- name: Install Yarn
run: yarn install
- name: Build For macOS
run: |
yarn build:bundle
yarn build:mac --publish never
mv dist/*-universal.dmg ~/Revolt-macOS-universal.dmg
- name: Publish Build Files
uses: actions/upload-artifact@v3
with:
path: ~/Revolt-macOS-universal.dmg
name: Revolt-macOS-universal