Skip to content

Commit eb1e7fc

Browse files
committed
Fix GH Actions release script (attempt #N+6)
1 parent 07f9a92 commit eb1e7fc

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v4
12+
- uses: webfactory/[email protected]
13+
with:
14+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
15+
16+
- name: Setup git profile
17+
run: |
18+
git config user.name "github-actions[bot]"
19+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
20+
1221
- name: Set up JDK
1322
uses: actions/setup-java@v4
1423
with:
@@ -21,15 +30,9 @@ jobs:
2130
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # has to be read directly from secrets
2231
gpg-passphrase: MAVEN_GPG_PASSPHRASE # default name used by maven-gpg-plugin
2332

24-
- name: Setup git profile
25-
run: |
26-
git config --global user.name "github-actions[bot]"
27-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
28-
2933
- name: Release new version
3034
run: mvn clean -Darguments=-DskipTests -ntp -B release:clean release:prepare release:perform -P release
3135
env:
3236
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
3337
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
3438
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
35-
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)