Skip to content

Commit e013c7d

Browse files
Test GitHub connection in the release Pipeline
1 parent 4f03ea6 commit e013c7d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ jobs:
2727
- name: Setup Git user
2828
uses: fregante/setup-git-user@v2
2929

30-
- name: Setup SSH Keys and known_hosts
31-
env:
32-
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
33-
run: |
34-
mkdir -p ~/.ssh
35-
ssh-keyscan github.com >> ~/.ssh/known_hosts
36-
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
37-
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
30+
- name: Setup SSH Keys and known_hosts
31+
env:
32+
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
33+
run: |
34+
mkdir -p ~/.ssh
35+
ssh-keyscan github.com >> ~/.ssh/known_hosts
36+
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
37+
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
38+
3839
3940
- name: Publish to GitHub Packages
4041
run: mvn -ntp -B release:prepare release:perform

0 commit comments

Comments
 (0)