This repository has been archived by the owner on Dec 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
140 lines (119 loc) · 5.08 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: Build and Release
on:
release:
types:
- created
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Checkout code
uses: actions/checkout@v4
# - name: install maker-flatpak dependencies
# run: |
# sudo apt-get install flatpak -y
# sudo apt-get install flatpak-builder -y
# sudo apt-get install elfutils -y
# sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# sudo flatpak install flathub org.freedesktop.Platform/x86_64/19.08 org.freedesktop.Sdk/x86_64/19.08 org.electronjs.Electron2.BaseApp/x86_64/stable -y
- name: Install dependencies
run: |
yarn
yarn version ${{ github.event.release.tag_name }}
- name: Build for Linux
run: yarn make --platform linux
- name: Upload Zip to Release
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/make/deb/x64/vtt-desktop-client_${{ github.event.release.tag_name }}_amd64.deb
asset_name: vtt-desktop-client_${{ github.event.release.tag_name }}_amd64.deb
asset_content_type: application/zip
- name: Upload Zip to Release 2
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/make/rpm/x64/vtt-desktop-client-${{ github.event.release.tag_name }}-1.x86_64.rpm
asset_name: vtt-desktop-client-${{ github.event.release.tag_name }}-1.x86_64.rpm
asset_content_type: application/zip
- name: Upload Zip to Release 3
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/make/zip/linux/x64/vtt-desktop-client-linux-x64-${{ github.event.release.tag_name }}.zip
asset_name: vtt-desktop-client-linux-x64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
# - name: Upload to Flathub
# uses: flatpak/flatpak-github-actions/flat-manager@v4
# with:
# repository: elementary
# flat-manager-url: https://flatpak-api.elementary.io
# token: some_very_hidden_token
# end-of-life: "The application has been renamed to..."
# end-of-life-rebase: "org.zbrown.Palette"
build-macos:
runs-on: macos-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
yarn
yarn version ${{ github.event.release.tag_name }}
- name: Build for macOS
run: yarn make --platform darwin
- name: Upload Zip to Release
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/make/zip/darwin/x64/vtt-desktop-client-darwin-x64-${{ github.event.release.tag_name }}.zip
asset_name: vtt-desktop-client-macos-x64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
- name: Upload Zip to Release 2
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/make/vtt-desktop-client-${{ github.event.release.tag_name }}-x64.dmg
asset_name: vtt-desktop-client-${{ github.event.release.tag_name }}-x64.dmg
asset_content_type: application/zip
build-windows:
runs-on: windows-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
yarn
yarn version ${{ github.event.release.tag_name }}
- name: Build for Windows
run: yarn make --platform win32
- name: Zip Make Folder
run: |
$outputPath = "$PWD\out\win64.zip"
Compress-Archive -Path "out\make\squirrel.windows\x64" -DestinationPath $outputPath
- name: Upload Zip to Release
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/win64.zip
asset_name: vtt-desktop-client-windows-x64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
- name: Upload Zip to Release 2
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out\make\zip\win32\x64\vtt-desktop-client-win32-x64-${{ github.event.release.tag_name }}.zip
asset_name: vtt-desktop-client-windows-x64-portable-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip