Skip to content

Commit 9f876d7

Browse files
new garasign action
1 parent 6cdb5b2 commit 9f876d7

File tree

1 file changed

+23
-21
lines changed
  • .github/actions/compress_sign_and_upload

1 file changed

+23
-21
lines changed
Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
name: Compress and Sign
22
description: 'Compresses package and signs with garasign'
33

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'
2021

2122
runs:
2223
using: composite
@@ -34,24 +35,25 @@ runs:
3435
3536
- name: Set up drivers-github-tools
3637
uses: mongodb-labs/drivers-github-tools/setup@v2
37-
with:
38+
with:
3839
aws_region_name: ${{ inputs.aws_region_name }}
3940
aws_role_arn: ${{ inputs.aws_role_arn }}
4041
aws_secret_id: ${{ inputs.aws_secret_id }}
4142

4243
- name: Create detached signature
4344
uses: mongodb-labs/drivers-github-tools/gpg-sign@v2
44-
with:
45+
with:
4546
filenames: ${{ steps.get_vars.outputs.package_file }}
46-
env:
47+
env:
4748
RELEASE_ASSETS: ${{ steps.get_vars.outputs.package_file }}.temp.sig
4849

49-
- name: Name release asset correctly
50+
- name: Name release asset correctly
5051
run: mv ${{ steps.get_vars.outputs.package_file }}.temp.sig ${{ steps.get_vars.outputs.package_file }}.sig
5152
shell: bash
5253

5354
- name: "Upload release artifacts"
55+
if: ${{ inputs.dry_run == false }}
5456
run: gh release upload v${{ steps.get_vars.outputs.package_version }} ${{ steps.get_vars.outputs.package_file }}.sig
5557
shell: bash
5658
env:
57-
GH_TOKEN: ${{ github.token }}
59+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)