File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 4
4
types : [published]
5
5
6
6
jobs :
7
- # Build job
8
- update-version :
7
+ release :
9
8
runs-on : ubuntu-latest
10
9
permissions :
11
10
contents :
12
11
write
13
12
steps :
14
13
- name : Checkout
15
14
uses : actions/checkout@v4
15
+ with :
16
+ ref : " main"
16
17
- name : Update PRP Files
17
18
uses : CIFriends/prp-preprocessor@0.1.1
18
19
with :
@@ -22,31 +23,20 @@ jobs:
22
23
target
23
24
env :
24
25
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
33
26
- uses : actions/setup-java@v3
34
27
with :
35
28
java-version : ' 11'
36
29
distribution : ' temurin'
37
30
java-package : ' jdk'
38
31
cache : ' maven'
39
32
server-id : ossrh
40
-
41
33
- name : mvn versions
42
34
run : mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}
43
-
44
35
- name : Import GPG Key
45
36
uses : crazy-max/ghaction-import-gpg@v5.0.0
46
37
with :
47
38
gpg_private_key : ${{ secrets.OSSRH_GPG_SECRET_KEY }}
48
39
passphrase : ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
49
-
50
40
- name : Release With Maven
51
41
run : |
52
42
mvn -s settings.xml -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} --batch-mode deploy -DskipTests -P publish
You can’t perform that action at this time.
0 commit comments