Skip to content

Commit 5ebe113

Browse files
Rely on setup-java for settings.xml, use GitHub user ID
1 parent daa07b4 commit 5ebe113

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,26 @@ jobs:
2121
uses: actions/setup-java@v3
2222
with:
2323
java-version: 11
24+
server-id: github
2425
distribution: 'temurin'
2526
cache: maven
26-
27-
- name: Setup Git user
28-
uses: fregante/setup-git-user@v2
29-
30-
- name: Setup SSH Keys and known_hosts
31-
env:
32-
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
27+
28+
- name: Configure Git user
3329
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+
git config user.email "[email protected]"
31+
git config user.name "GitHub Actions"
32+
33+
# - name: Setup Git user
34+
# uses: fregante/setup-git-user@v2
35+
#
36+
# - name: Setup SSH Keys and known_hosts
37+
# env:
38+
# SSH_AUTH_SOCK: /tmp/ssh_agent.sock
39+
# run: |
40+
# mkdir -p ~/.ssh
41+
# ssh-keyscan github.com >> ~/.ssh/known_hosts
42+
# ssh-agent -a $SSH_AUTH_SOCK > /dev/null
43+
# ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
3844

3945
- name: Publish to GitHub Packages
4046
run: mvn -ntp -B release:prepare release:perform

0 commit comments

Comments
 (0)