File tree 5 files changed +31
-41
lines changed
5 files changed +31
-41
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ jobs:
104
104
- script : yarn test:e2e
105
105
name : Test
106
106
107
- - job : Package
108
- condition : startsWith (variables['Build.SourceBranch '], 'refs/tags/ ')
107
+ - job : Release
108
+ condition : eq (variables['build.sourceBranch '], 'refs/heads/master ')
109
109
pool :
110
110
vmImage : ' macos-10.14'
111
111
steps :
@@ -127,27 +127,14 @@ jobs:
127
127
displayName : ' Download Windows Signing Certificate'
128
128
inputs :
129
129
secureFile : Neuron_win.p12
130
- - script : yarn package
131
- name : Build
130
+ - script : yarn release
131
+ name : Release
132
+ displayName : ' Sign and Release'
132
133
env :
133
134
CSC_LINK : $(macSiginingCertificate.secureFilePath)
134
135
CSC_KEY_PASSWORD : $(macSiginingCertificatePassword)
135
136
WIN_CSC_LINK : $(winSiginingCertificate.secureFilePath)
136
137
WIN_CSC_KEY_PASSWORD : $(winSiginingCertificatePassword)
137
138
APPLE_ID : $(appleId)
138
139
APPLE_ID_PASSWORD : $(appleIdPassword)
139
- - task : GitHubRelease@0
140
- inputs :
141
- gitHubConnection : nervos-bot
142
- repositoryName : nervosnetwork/neuron
143
- action : edit
144
- tag : $(Build.SourceBranchName)
145
- assets : |
146
- $(Build.SourcesDirectory)/release/*.zip
147
- $(Build.SourcesDirectory)/release/*.dmg
148
- $(Build.SourcesDirectory)/release/*.exe
149
- $(Build.SourcesDirectory)/release/*.deb
150
- $(Build.SourcesDirectory)/release/*.AppImage
151
- assetUploadMode : replace
152
- isPreRelease : true
153
- addChangeLog : false
140
+ GH_TOKEN : $(ghToken)
Original file line number Diff line number Diff line change 29
29
"clean" : " lerna run --stream clean" ,
30
30
"prebuild" : " yarn clean" ,
31
31
"build" : " lerna run --stream build" ,
32
- "package " : " yarn build && ./scripts/copy-ui-files.sh && ./scripts/package .sh" ,
32
+ "release " : " yarn build && ./scripts/copy-ui-files.sh && ./scripts/release .sh" ,
33
33
"test" : " lerna run --parallel test" ,
34
34
"test:e2e" : " yarn build && ./scripts/copy-ui-files.sh && lerna run --parallel test:e2e" ,
35
35
"lint" : " lerna run --stream lint" ,
Original file line number Diff line number Diff line change 29
29
- from : " ../../node_modules/escape-string-regexp"
30
30
to : " node_modules/escape-string-regexp"
31
31
32
+ publish :
33
+ - github
34
+
32
35
nsis :
33
36
oneClick : false
34
37
createDesktopShortcut : always
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ function release() {
4
+ case $1 in
5
+ mac)
6
+ electron-builder --mac -p always
7
+ ;;
8
+ win)
9
+ electron-builder --win --x64 -p always
10
+ ;;
11
+ linux)
12
+ electron-builder --linux -p always
13
+ ;;
14
+ * )
15
+ electron-builder -mwl -p always
16
+ ;;
17
+ esac
18
+ }
19
+
20
+ cd packages/neuron-wallet/
21
+ release $1
You can’t perform that action at this time.
0 commit comments