Skip to content

Commit 209a80c

Browse files
authored
ci: fix maven-publish.yml
1 parent 5104af9 commit 209a80c

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/maven-publish.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ on:
44
types: [published]
55

66
jobs:
7-
# Build job
8-
update-version:
7+
release:
98
runs-on: ubuntu-latest
109
permissions:
1110
contents:
1211
write
1312
steps:
1413
- name: Checkout
1514
uses: actions/checkout@v4
15+
with:
16+
ref: "main"
1617
- name: Update PRP Files
1718
uses: CIFriends/prp-preprocessor@0.1.1
1819
with:
@@ -22,31 +23,20 @@ jobs:
2223
target
2324
env:
2425
currentVersion: ${{ github.event.release.tag_name }}
25-
26-
build:
27-
runs-on: ubuntu-latest
28-
steps:
29-
- name: Checkout
30-
uses: actions/checkout@v4
31-
with:
32-
fetch-depth: 0 # Not needed if lastUpdated is not enabled
3326
- uses: actions/setup-java@v3
3427
with:
3528
java-version: '11'
3629
distribution: 'temurin'
3730
java-package: 'jdk'
3831
cache: 'maven'
3932
server-id: ossrh
40-
4133
- name: mvn versions
4234
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}
43-
4435
- name: Import GPG Key
4536
uses: crazy-max/ghaction-import-gpg@v5.0.0
4637
with:
4738
gpg_private_key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
4839
passphrase: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
49-
5040
- name: Release With Maven
5141
run: |
5242
mvn -s settings.xml -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} --batch-mode deploy -DskipTests -P publish

0 commit comments

Comments
 (0)