forked from MoeFE/GoogleTranslate
-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (36 loc) · 1.15 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
name: Build/release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, ubuntu-20.04, windows-2019]
steps:
- name: Check out Git repository
uses: actions/checkout@v2
with:
submodules: true
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v2-beta
with:
node-version: '14'
- name: Install robotjs
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get install libxtst-dev libpng++-dev
# Credentials are no longer valid for the Snap Store.
# - name: Install and login Snapcraft
# uses: samuelmeuli/action-snapcraft@v1
# if: startsWith(matrix.os, 'ubuntu')
# with:
# snapcraft_token: ${{ secrets.snapcraft_token }}
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/') }}
mac_certs: ${{ secrets.mac_certs }}
mac_certs_password: ${{ secrets.mac_certs_password }}