-
Notifications
You must be signed in to change notification settings - Fork 0
127 lines (115 loc) · 3.37 KB
/
electron.yml
File metadata and controls
127 lines (115 loc) · 3.37 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
name: Electron Builds
on:
workflow_dispatch:
workflow_call:
push:
branches: [master]
tags:
- 'v*'
permissions:
contents: write
jobs:
build-linux:
name: Build Linux (AppImage)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: pnpm/action-setup@v4
with:
version: latest
- name: Install & Build
working-directory: electron
run: pnpm install && pnpm ci:package:linux
- uses: actions/upload-artifact@v4
with:
name: smshub-linux
path: electron/release/*.AppImage
build-macos:
name: Build macOS (dmg)
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: pnpm/action-setup@v4
with:
version: latest
- name: Install & Build
working-directory: electron
run: |
pnpm install
if [ -n "$CSC_LINK" ]; then
pnpm ci:package:mac
else
CSC_IDENTITY_AUTO_DISCOVERY=false pnpm ci:package:mac --config.mac.identity=null
fi
env:
CSC_LINK: ${{ secrets.MAC_CERTS }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTS_PASSWORD }}
- uses: actions/upload-artifact@v4
with:
name: smshub-macos
path: electron/release/*.dmg
build-windows:
name: Build Windows (exe)
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: pnpm/action-setup@v4
with:
version: latest
- name: Install & Build
working-directory: electron
run: pnpm install && pnpm ci:package:win
- uses: actions/upload-artifact@v4
with:
name: smshub-windows
path: electron/release/*.exe
publish-release:
name: Publish Release
runs-on: ubuntu-latest
needs: [build-linux, build-macos, build-windows]
steps:
- uses: actions/checkout@v4
- name: Get version
id: version
run: |
VERSION=$(node -p "require('./package.json').version")
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
echo "Version: ${VERSION}"
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: List artifacts
run: find artifacts -type f | head -20
- name: Create or update GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.version.outputs.version }}
name: SMSHub v${{ steps.version.outputs.version }}
body: |
## SMSHub Desktop v${{ steps.version.outputs.version }}
### Downloads
- **Linux:** SMSHub AppImage
- **macOS:** SMSHub dmg
- **Windows:** SMSHub exe installer
### What's New
See [CHANGELOG](https://github.com/profullstack/smshub/commits/master) for details.
draft: false
prerelease: false
generate_release_notes: true
files: |
artifacts/smshub-linux/*
artifacts/smshub-macos/*
artifacts/smshub-windows/*
make_latest: true