This repository was archived by the owner on Aug 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +51
-2
lines changed Expand file tree Collapse file tree 2 files changed +51
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ OSSRH_USERNAME :
7
+ description : ' OSSRH Username'
8
+ required : true
9
+ OSSRH_TOKEN :
10
+ description : ' OSSRH Token'
11
+ required : true
12
+
13
+ jobs :
14
+ release :
15
+ name : Release
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Mask sensitive input
19
+ run : |
20
+ echo "::add-mask::${{ github.event.inputs.OSSRH_USERNAME }}"
21
+ echo "::add-mask::${{ github.event.inputs.OSSRH_TOKEN }}"
22
+ - uses : actions/checkout@v2
23
+ - name : Set up Maven Central Repository
24
+ uses : actions/setup-java@v1
25
+ with :
26
+ java-version : 11
27
+ server-id : ossrh
28
+ server-username : OSSRH_USERNAME
29
+ server-password : OSSRH_TOKEN
30
+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
31
+ - name : Configure Git
32
+ run : |
33
+ git config --global author.email '${{ github.actor }}@users.noreply.github.com'
34
+ git config --global author.name '${{ github.actor }}'
35
+ git config --global committer.email 'actions@github.com'
36
+ git config --global committer.name 'GitHub Actions'
37
+ - name : Release package
38
+ run : |
39
+ ./mvnw -B release:prepare release:perform -Dpassword=${{ secrets.GITHUB_TOKEN }}
40
+ env :
41
+ OSSRH_USERNAME : ${{ github.event.inputs.OSSRH_USERNAME }}
42
+ OSSRH_TOKEN : ${{ github.event.inputs.OSSRH_TOKEN }}
43
+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 84
84
</developers >
85
85
86
86
<scm >
87
- <developerConnection >scm:git:git@ github.com: assertj/assertj-maven -parent-pom.git</developerConnection >
88
- <connection >scm:git:git@ github.com: assertj/assertj-maven -parent-pom.git</connection >
87
+ <developerConnection >scm:git:https:// github.com/ assertj/assertj-parent-pom.git</developerConnection >
88
+ <connection >scm:git:https:// github.com/ assertj/assertj-parent-pom.git</connection >
89
89
<url >https://github.com/assertj/assertj-maven-parent-pom</url >
90
90
<tag >HEAD</tag >
91
91
</scm >
@@ -563,6 +563,12 @@ Copyright ${inceptionYear}-${currentYear} the original author or authors.
563
563
<goals >
564
564
<goal >sign</goal >
565
565
</goals >
566
+ <configuration >
567
+ <gpgArguments >
568
+ <arg >--pinentry-mode</arg >
569
+ <arg >loopback</arg >
570
+ </gpgArguments >
571
+ </configuration >
566
572
</execution >
567
573
</executions >
568
574
</plugin >
You can’t perform that action at this time.
0 commit comments