-
-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (66 loc) · 2.1 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
name: Build/release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
name: Building ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
# if: "contains(github.event.head_commit.message, '#build')"
strategy:
matrix:
include:
- kind: linux
os: ubuntu-24.04
platform: linux
- kind: windows
os: windows-latest
platform: win
- kind: mac
os: macos-latest
platform: osx
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Setup Node Environment
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: Read version from package.json
if: matrix.platform == 'osx'
id: get_version
run: |
VERSION=$(node -p "require('./package.json').version")
echo "version=$VERSION" >> $GITHUB_ENV
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build:${{ matrix.platform }} --publish=never
# - name: Upload build artifact
# uses: actions/upload-artifact@v3
# with:
# name: ${{ matrix.platform }}-build
# path: |
# dist/electron/Packaged/*.exe
# dist/electron/Packaged/*.AppImage
# dist/electron/Packaged/*.deb
# dist/electron/Packaged/*.tar.gz
# dist/electron/Packaged/*.dmg
# dist/electron/Packaged/*.zip
# dist/electron/Packaged/builder-debug.yml
- name: Sign Mac App
if: matrix.platform == 'osx'
uses: indygreg/apple-code-sign-action@v1
with:
input_path: ./dist/electron/Packaged/Drehmal.Installer-${{ env.version }}-arm64.dmg
- name: Create new release
uses: softprops/action-gh-release@v1
with:
files: |
dist/electron/Packaged/*.exe
dist/electron/Packaged/*.AppImage
dist/electron/Packaged/*.deb
dist/electron/Packaged/*.tar.gz
dist/electron/Packaged/*.dmg