-
Notifications
You must be signed in to change notification settings - Fork 18
/
azure-pipelines.yml
39 lines (37 loc) · 1.04 KB
/
azure-pipelines.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
# https://aka.ms/yaml
trigger:
tags:
include:
- v*
branches:
include:
- master
pool:
vmImage: macos-latest
steps:
- task: GoTool@0
inputs:
version: '1.18.2'
- task: NodeTool@0
inputs:
versionSpec: '16.x'
- script: |
npm install
FRONTEND_APP=mmseqs make all -j $(nproc --all 2>/dev/null || sysctl -n hw.ncpu)
ELECTRON=1 FRONTEND_APP=mmseqs node ./electron/build.js
- task: DownloadSecureFile@1
name: certificate
inputs:
secureFile: certificate.p12
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
- task: CmdLine@2
inputs:
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
script: ./node_modules/.bin/electron-builder -mwl
${{ else }}:
script: ./node_modules/.bin/electron-builder -mwl -c.mac.identity=null -p never
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
env:
CSC_LINK: $(certificate.secureFilePath)
CSC_KEY_PASSWORD: $(CSC_KEY_PASSWORD)
GH_TOKEN: $(GH_TOKEN)