Skip to content

Commit 66231de

Browse files
committed
use ssh key in workflow
1 parent 20a3c53 commit 66231de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@ jobs:
3131
sed -i "s/\${GPG_PASSPHRASE}/$GPG_PASSPHRASE/g" ./pom.xml
3232
cat ./pom.xml
3333
name: Generate GPG key
34+
- name: Set up SSH key
35+
run: |
36+
mkdir -p ~/.ssh
37+
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
38+
chmod 600 ~/.ssh/id_rsa
3439
- name: Deploy
3540
run: mvn deploy -Prelease -X

0 commit comments

Comments
 (0)