1
1
name : Compress and Sign
2
2
description : ' Compresses package and signs with garasign'
3
3
4
- inputs :
5
- aws_role_arn :
6
- description : ' AWS role input for drivers-github-tools/gpg-sign@v2'
7
- required : true
8
- aws_region_name :
9
- description : ' AWS region name input for drivers-github-tools/gpg-sign@v2'
10
- required : true
11
- aws_secret_id :
12
- description : ' AWS secret id input for drivers-github-tools/gpg-sign@v2'
13
- required : true
14
- npm_package_name :
15
- description : ' The name for the npm package this repository represents'
16
- required : true
4
+ inputs :
5
+ aws_role_arn :
6
+ description : ' AWS role input for drivers-github-tools/gpg-sign@v2'
7
+ required : true
8
+ aws_region_name :
9
+ description : ' AWS region name input for drivers-github-tools/gpg-sign@v2'
10
+ required : true
11
+ aws_secret_id :
12
+ description : ' AWS secret id input for drivers-github-tools/gpg-sign@v2'
13
+ required : true
14
+ npm_package_name :
15
+ description : ' The name for the npm package this repository represents'
16
+ required : true
17
+ dry_run :
18
+ description : ' Should we upload files to the release?'
19
+ required : false
20
+ default : ' true'
17
21
18
22
runs :
19
23
using : composite
@@ -31,23 +35,24 @@ runs:
31
35
32
36
- name : Set up drivers-github-tools
33
37
uses : mongodb-labs/drivers-github-tools/setup@v2
34
- with :
38
+ with :
35
39
aws_region_name : ${{ inputs.aws_region_name }}
36
40
aws_role_arn : ${{ inputs.aws_role_arn }}
37
41
aws_secret_id : ${{ inputs.aws_secret_id }}
38
42
39
43
- name : Create detached signature
40
44
uses : mongodb-labs/drivers-github-tools/gpg-sign@v2
41
- with :
45
+ with :
42
46
filenames : ${{ steps.get_vars.outputs.package_file }}
43
- env :
47
+ env :
44
48
RELEASE_ASSETS : ${{ steps.get_vars.outputs.package_file }}.temp.sig
45
49
46
- - name : Name release asset correctly
50
+ - name : Name release asset correctly
47
51
run : mv ${{ steps.get_vars.outputs.package_file }}.temp.sig ${{ steps.get_vars.outputs.package_file }}.sig
48
52
shell : bash
49
53
50
54
- name : " Upload release artifacts"
55
+ if : ${{ inputs.dry_run == false }}
51
56
run : gh release upload v${{ steps.get_vars.outputs.package_version }} ${{ steps.get_vars.outputs.package_file }}.sig
52
57
shell : bash
53
58
env :
0 commit comments