@@ -2,6 +2,7 @@ import os from 'os';
2
2
import Config from './config' ;
3
3
import compileExec from './compile-exec' ;
4
4
import uploadArtifactToEvergreen from './evergreen' ;
5
+ import uploadArtifactToDownloads from './upload-artifact' ;
5
6
import uploadDownloadCenterConfig from './download-center' ;
6
7
import Platform from './platform' ;
7
8
import zip from './zip' ;
@@ -15,25 +16,25 @@ import S3 from 'aws-sdk/clients/s3';
15
16
const release = async ( config : Config ) => {
16
17
const platform = os . platform ( ) ;
17
18
18
- // 1. Build the executable.
19
+ // - Build the executable.
19
20
await compileExec ( config . input , config . outputDir , platform ) ;
20
21
21
- // 2. Sign the executable for each OS.
22
+ // - Sign the executable for each OS.
22
23
23
- // 3. Zip the executable.
24
+ // - Zip the executable.
24
25
const artifact = await zip ( config . input , config . outputDir , platform , config . version ) ;
25
26
26
- // 4. Create & sign the .deb (only on linux)
27
- // 5. Create & sign the .rpm (only on linux)
28
- // 6. Create & sign the .msi (only on win)
29
- //
30
- // If this is a new release tag.
27
+ // - Create & sign the .deb (only on linux)
28
+ // - Create & sign the .rpm (only on linux)
29
+ // - Create & sign the .msi (only on win)
30
+ // -
31
+ // - this is a new release tag.
31
32
//
32
- // 1. Publish the .deb (only on linux)
33
- // 2. Publish the .rpm (only on linux)
34
- // 3. Create PR for Homebrew (only on macos)
33
+ // - Publish the .deb (only on linux)
34
+ // - Publish the .rpm (only on linux)
35
+ // - Create PR for Homebrew (only on macos)
35
36
36
- // 4. Upload artifacts to S3 for Evergreen and downloads.
37
+ // - Upload artifacts to S3 for Evergreen and downloads.
37
38
await uploadArtifactToEvergreen (
38
39
artifact ,
39
40
config . evgAwsKey ,
@@ -49,10 +50,12 @@ const release = async(config: Config) => {
49
50
config . revision
50
51
) ;
51
52
52
- // 5. Create Github release.
53
+ // - Create Github release.
53
54
54
- // 6. Create download center config and upload. (only on macos)
55
- // 7. Publish to NPM. (only on macos)
55
+ // - Create download center config and upload.
56
+ // - Publish to NPM.
57
+ //
58
+ // These only need to happen once so we only run them on MacOS.
56
59
if ( platform === Platform . MacOs ) {
57
60
await uploadDownloadCenterConfig (
58
61
config . version ,
0 commit comments