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
17
- sign_SBOMs :
18
- description : ' If provided, this script will create SBOM signatures'
19
- required : false
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'
20
21
21
22
runs :
22
23
using : composite
@@ -34,24 +35,25 @@ runs:
34
35
35
36
- name : Set up drivers-github-tools
36
37
uses : mongodb-labs/drivers-github-tools/setup@v2
37
- with :
38
+ with :
38
39
aws_region_name : ${{ inputs.aws_region_name }}
39
40
aws_role_arn : ${{ inputs.aws_role_arn }}
40
41
aws_secret_id : ${{ inputs.aws_secret_id }}
41
42
42
43
- name : Create detached signature
43
44
uses : mongodb-labs/drivers-github-tools/gpg-sign@v2
44
- with :
45
+ with :
45
46
filenames : ${{ steps.get_vars.outputs.package_file }}
46
- env :
47
+ env :
47
48
RELEASE_ASSETS : ${{ steps.get_vars.outputs.package_file }}.temp.sig
48
49
49
- - name : Name release asset correctly
50
+ - name : Name release asset correctly
50
51
run : mv ${{ steps.get_vars.outputs.package_file }}.temp.sig ${{ steps.get_vars.outputs.package_file }}.sig
51
52
shell : bash
52
53
53
54
- name : " Upload release artifacts"
55
+ if : ${{ inputs.dry_run == false }}
54
56
run : gh release upload v${{ steps.get_vars.outputs.package_version }} ${{ steps.get_vars.outputs.package_file }}.sig
55
57
shell : bash
56
58
env :
57
- GH_TOKEN : ${{ github.token }}
59
+ GH_TOKEN : ${{ github.token }}
0 commit comments