github-ci.yml 1.96 KB
Newer Older
1
name: Build & release
2
3
4
5
on:
  push:
    tags:
      - '*'
6
jobs:
ransome1's avatar
ransome1 committed
7
8
  macos:
    name: MacOS (Build & Release)
9
10
11
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
ransome1's avatar
ransome1 committed
12
        os: [macos-latest]
13
14
    steps:
      - name: Check out Git repository
ransome1's avatar
ransome1 committed
15
        uses: actions/checkout@v2
16
17
18
19
      - name: Install Node.js, NPM and Yarn
        uses: actions/setup-node@v1
        with:
          node-version: 14
ransome1's avatar
ransome1 committed
20
21
      - name: Run Electron Builder
        uses: samuelmeuli/action-electron-builder@v1
22
23
24
25
26
        env:
          CSC_LINK: ${{ secrets.CSC_LINK }}
          CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
          APPLEID: ${{ secrets.APPLEID }}
          APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
ransome1's avatar
ransome1 committed
27
28
29
30
31
32
33
34
35
36
37
38
        with:
          max_attempts: 3
          github_token: ${{ secrets.github_token }}
          release: ${{ startsWith(github.ref, 'refs/tags/v') }}
  windows:
    name: Windows (Build & Release)
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [windows-latest]
    steps:
      - name: Check out Git repository
ransome1's avatar
ransome1 committed
39
        uses: actions/checkout@v2
ransome1's avatar
ransome1 committed
40
41
42
43
44
      - name: Install Node.js, NPM and Yarn
        uses: actions/setup-node@v1
        with:
          node-version: 14
      - name: Run Electron Builder
45
46
        uses: samuelmeuli/action-electron-builder@v1
        with:
ransome1's avatar
ransome1 committed
47
48
49
50
51
52
53
54
55
56
57
          max_attempts: 3
          github_token: ${{ secrets.github_token }}
          release: ${{ startsWith(github.ref, 'refs/tags/v') }}
  linux:
    name: Linux (Build & Release)
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest]
    steps:
      - name: Check out Git repository
ransome1's avatar
ransome1 committed
58
        uses: actions/checkout@v2
ransome1's avatar
ransome1 committed
59
60
61
62
63
64
65
66
      - name: Install Node.js, NPM and Yarn
        uses: actions/setup-node@v1
        with:
          node-version: 14
      - name: Run Electron Builder
        uses: samuelmeuli/action-electron-builder@v1
        with:
          max_attempts: 3
67
          github_token: ${{ secrets.github_token }}
68
          release: ${{ startsWith(github.ref, 'refs/tags/v') }}