Skip to content

Commit d3af900

Browse files
new garasign adction
1 parent b0a68f9 commit d3af900

File tree

1 file changed

+22
-17
lines changed
  • .github/actions/compress_sign_and_upload

1 file changed

+22
-17
lines changed

.github/actions/compress_sign_and_upload/action.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +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
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'
1721

1822
runs:
1923
using: composite
@@ -31,23 +35,24 @@ runs:
3135
3236
- name: Set up drivers-github-tools
3337
uses: mongodb-labs/drivers-github-tools/setup@v2
34-
with:
38+
with:
3539
aws_region_name: ${{ inputs.aws_region_name }}
3640
aws_role_arn: ${{ inputs.aws_role_arn }}
3741
aws_secret_id: ${{ inputs.aws_secret_id }}
3842

3943
- name: Create detached signature
4044
uses: mongodb-labs/drivers-github-tools/gpg-sign@v2
41-
with:
45+
with:
4246
filenames: ${{ steps.get_vars.outputs.package_file }}
43-
env:
47+
env:
4448
RELEASE_ASSETS: ${{ steps.get_vars.outputs.package_file }}.temp.sig
4549

46-
- name: Name release asset correctly
50+
- name: Name release asset correctly
4751
run: mv ${{ steps.get_vars.outputs.package_file }}.temp.sig ${{ steps.get_vars.outputs.package_file }}.sig
4852
shell: bash
4953

5054
- name: "Upload release artifacts"
55+
if: ${{ inputs.dry_run == false }}
5156
run: gh release upload v${{ steps.get_vars.outputs.package_version }} ${{ steps.get_vars.outputs.package_file }}.sig
5257
shell: bash
5358
env:

0 commit comments

Comments
 (0)