Skip to content

Commit c946cd9

Browse files
committed
Fix release.yml
1 parent 0ecc6d4 commit c946cd9

File tree

2 files changed

+28
-19
lines changed

2 files changed

+28
-19
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,29 @@ permissions:
77
contents: write
88

99
jobs:
10-
build:
10+
release:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- name: Set up JDK 17
15-
uses: actions/setup-java@v4
16-
with:
17-
java-version: '17'
18-
distribution: 'temurin'
19-
cache: maven
20-
server-id: 'central'
21-
server-username: MAVEN_USERNAME
22-
server-password: MAVEN_PASSWORD
23-
- name: Perform Release
24-
run: ./mvnw -B -Prelease -Dgpg.signer=bc release:prepare release:perform
25-
env:
26-
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
27-
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
28-
MAVEN_GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
29-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
13+
- uses: actions/checkout@v4
14+
- name: Set up JDK 17
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '17'
18+
distribution: 'temurin'
19+
cache: maven
20+
server-id: 'central'
21+
server-username: MAVEN_USERNAME
22+
server-password: MAVEN_PASSWORD
23+
- name: Set Git User Identity
24+
run: |
25+
git config --local user.email [email protected]
26+
git config --local user.name "Shitikanth Kashyap"
27+
- name: Perform Release
28+
run: ./mvnw -B -Prelease release:prepare release:perform -Dgpg.signer=bc
29+
env:
30+
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
31+
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
32+
MAVEN_GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
33+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
34+
GITHUB_USERNAME: ${{ github.actor }}
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<scm>
3030
<connection>scm:git:https://github.com/shitikanth/enforcer-rules.git</connection>
31-
<developerConnection>scm:git:ssh://git@github.com/shitikanth/enforcer-rules.git</developerConnection>
31+
<developerConnection>scm:git:https://github.com/shitikanth/enforcer-rules.git</developerConnection>
3232
<tag>HEAD</tag>
3333
<url>https://github.com/shitikanth/enforcer-rules/tree/main</url>
3434
</scm>
@@ -287,6 +287,9 @@
287287
<goals>
288288
<goal>sign</goal>
289289
</goals>
290+
<configuration>
291+
<signer>bc</signer>
292+
</configuration>
290293
</execution>
291294
</executions>
292295
</plugin>

0 commit comments

Comments
 (0)