-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (48 loc) · 1.53 KB
/
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
51
52
53
54
55
56
57
58
59
name: Build and release
on:
push:
tags:
- '*'
jobs:
send-release-data:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 15
- name: Get package info
id: packageInfo
uses: codex-team/action-nodejs-package-info@v1
- name: Send release data
uses: codex-team/hawk.releases@v1
with:
release: ${{ steps.packageInfo.outputs.name }}-${{ steps.packageInfo.outputs.version }}
token: ${{ secrets.HAWK_TOKEN }}
create-release-draft:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 15
- name: Make envfile with Hawk token
uses: ozaytsev86/create-env-file@v1
with:
file-name: './.env'
ENV_HAWK_TOKEN: ${{ secrets.HAWK_TOKEN }}
- name: Build and release
uses: samuelmeuli/action-electron-builder@v1
with:
build_script_name: 'electron:prebuild'
mac_certs: ${{ secrets.mac_certs }}
mac_certs_password: ${{ secrets.mac_certs_password }}
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}