Skip to content

Commit a789c41

Browse files
Update release.yml
1 parent 964873c commit a789c41

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v3
1414

1515
- name: Import GPG key
1616
run: |
@@ -22,25 +22,14 @@ jobs:
2222
with:
2323
java-version: '8'
2424
distribution: 'temurin'
25-
26-
- name: Build with Maven
27-
run: mvn -B package --file auto-generated-sdk/pom.xml
28-
29-
- name: Publish to Github Packages Apache Maven
30-
run: cd auto-generated-sdk && mvn -Psign-artifacts verify deploy
31-
env:
32-
GITHUB_TOKEN: ${{ github.token }}
33-
34-
- name: Set up Apache Maven Central
35-
uses: actions/setup-java@v4
36-
with: # running setup-java again overwrites the settings.xml
37-
distribution: 'temurin'
38-
java-version: '11'
3925
server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
4026
server-username: MAVEN_USERNAME # env variable for username in deploy
4127
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
4228
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
4329
gpg-passphrase: MAVEN_GPG_PASSPHRASE
30+
31+
- name: Build with Maven
32+
run: mvn -B package --file auto-generated-sdk/pom.xml
4433

4534
- name: Publish to Apache Maven Central
4635
run: mvn deploy

0 commit comments

Comments
 (0)