-
Notifications
You must be signed in to change notification settings - Fork 277
135 lines (115 loc) · 3.33 KB
/
Copy pathbotbrowser-control-build.yml
File metadata and controls
135 lines (115 loc) · 3.33 KB
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
name: BotBrowser Control — Build & Release
on:
push:
tags:
- 'control-v*.*.*'
workflow_dispatch:
jobs:
build-mac:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
ref: add-botbrowser-control
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
working-directory: botbrowser-control
- name: Build macOS
run: npm run build:mac
working-directory: botbrowser-control
env:
CSC_IDENTITY_AUTO_DISCOVERY: false
- uses: actions/upload-artifact@v4
with:
name: mac-builds
path: |
botbrowser-control/dist/*.dmg
botbrowser-control/dist/*.zip
retention-days: 7
build-windows:
name: Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: add-botbrowser-control
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
working-directory: botbrowser-control
- name: Build Windows
run: npx electron-builder --win
working-directory: botbrowser-control
env:
CSC_IDENTITY_AUTO_DISCOVERY: "false"
DEBUG: electron-builder
- uses: actions/upload-artifact@v4
with:
name: windows-builds
path: |
botbrowser-control/dist/*.exe
botbrowser-control/dist/*.zip
retention-days: 7
build-linux:
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: add-botbrowser-control
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Linux build dependencies
run: |
sudo apt-get update
sudo apt-get install -y libnss3 libxss1 libxtst6 fakeroot
- name: Install dependencies
run: npm install
working-directory: botbrowser-control
- name: Build Linux
run: npm run build:linux
working-directory: botbrowser-control
- uses: actions/upload-artifact@v4
with:
name: linux-builds
path: |
botbrowser-control/dist/*.AppImage
botbrowser-control/dist/*.deb
botbrowser-control/dist/*.tar.gz
retention-days: 7
release:
name: Upload to Release
needs: [build-mac, build-windows, build-linux]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts/
- name: List artifacts
run: find artifacts/ -type f | sort
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
artifacts/mac-builds/*.dmg
artifacts/mac-builds/*.zip
artifacts/windows-builds/*.exe
artifacts/windows-builds/*.zip
artifacts/linux-builds/*.AppImage
artifacts/linux-builds/*.deb
artifacts/linux-builds/*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}