Skip to content

Commit 63a9e22

Browse files
authored
Attempt to fix build signing
1 parent 158d96d commit 63a9e22

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/signing.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)