-
Notifications
You must be signed in to change notification settings - Fork 163
50 lines (41 loc) · 1.33 KB
/
draft-release.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
name: draft a release
on:
push:
tags:
- v*
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Prepare Git
run: |-
git config --global core.longpaths true
git config --global core.autocrlf false
git config --global core.eol lf
- name: Check out Git repository with submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
mac_certs: ${{ secrets.mac_certs }}
mac_certs_password: ${{ secrets.mac_certs_password }}
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
package_root: "./electron"
build_script_name: "package"