This repository was archived by the owner on May 25, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
152 lines (124 loc) · 4.39 KB
/
Copy pathrelease.yml
File metadata and controls
152 lines (124 loc) · 4.39 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: Release
on:
release:
types: [published]
jobs:
build-windows:
strategy:
matrix:
node-version: [22]
runs-on: windows-2022
steps:
- uses: actions/checkout@v5
- name: Cache node modules
uses: actions/cache@v5
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm`
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm i
- name: Build the app
run: npm run electron:build
- name: Upload artifacts (Windows)
uses: softprops/action-gh-release@v2
with:
files: |
release/*.exe#monerod-gui-windows-${{ github.ref_name }}-portable.exe
release/*.msi#monerod-gui-windows-${{ github.ref_name }}-installer.msi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-macos:
strategy:
matrix:
node-version: [22]
runs-on: macos-13
steps:
- uses: actions/checkout@v5
- name: Cache node modules
uses: actions/cache@v5
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: brew install python-setuptools && npm install -g appdmg && npm i && npm i -D cli-truncate iconv-corefoundation
- name: Build the app
run: npm run electron:build
- name: List artifacts
run: ls release/
- name: Build DMG installer
run: npm run electron:build:mac
- name: Upload artifacts
uses: softprops/action-gh-release@v2
with:
files: |
release/*.dmg#monerod-gui-darwin-${{ github.ref_name }}.dmg
release/*.pkg#monerod-gui-darwin-${{ github.ref_name }}.pkg
dist/installers/*.dmg#monerod-gui-darwin-${{ github.ref_name }}-installer.dmg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-linux:
strategy:
matrix:
node-version: [22]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Cache node modules
uses: actions/cache@v5
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf fakeroot dpkg
- name: Install Dependencies
run: npm i
- name: Build DEB package
run: npm run electron:build:deb
- name: Build AppImage package
run: npm run electron:build
- name: Build RPM package
run: npm run electron:build:rpm
- name: Upload artifacts (Linux)
uses: softprops/action-gh-release@v2
with:
files: |
release/*.AppImage#monerod-gui-linux-${{ github.ref_name }}.AppImage
dist/installers/*.rpm#monerod-gui-linux-${{ github.ref_name }}.rpm
dist/installers/*.deb#monerod-gui-linux-${{ github.ref_name }}.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}