File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release Signing
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ required : true
8
+
9
+ jobs :
10
+ release-gpg-test :
11
+ runs-on : ubuntu-latest
12
+ environment : Deploy
13
+ steps :
14
+ - name : Import GPG
15
+ id : import_gpg
16
+ uses : crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4
17
+ with :
18
+ gpg_private_key : ${{ secrets.GPG_RELEASE_KEY }}
19
+ passphrase : ${{ secrets.GPG_PASSPHRASE }}
20
+
21
+ - name : Downloading the release
22
+ run : wget https://github.com/yarnpkg/yarn/releases/download/v${{ inputs.version }}/yarn-v${{ inputs.version }}.tar.gz
23
+
24
+ - name : GPG sign file
25
+ run : gpg -u ${{ vars.GPG_RELEASE_KEY_ID }} --armor --output yarn-v${{ inputs.version }}.tar.gz.asc --detach-sign yarn-v${{ inputs.version }}.tar.gz
26
+
27
+ - name : Store signature as artifact
28
+ uses : actions/upload-artifact@v3
29
+ with :
30
+ name : signed
31
+ path : |
32
+ yarn-v${{ inputs.version }}.tar.gz
33
+ yarn-v${{ inputs.version }}.tar.gz.asc
You can’t perform that action at this time.
0 commit comments