File tree Expand file tree Collapse file tree 3 files changed +18
-24
lines changed
Expand file tree Collapse file tree 3 files changed +18
-24
lines changed Original file line number Diff line number Diff line change 77 push :
88 branches : [ master ]
99
10+ permissions :
11+ packages : write
12+
1013jobs :
1114 build :
1215
1316 runs-on : ubuntu-latest
1417
1518 steps :
1619 - uses : actions/checkout@v3
17- - name : Set up JDK 11 for Maven Central
20+ - name : Set up JDK 11
1821 uses : actions/setup-java@v3
1922 with :
2023 distribution : ' zulu'
2124 java-version : ' 11'
2225 architecture : x64
23- server-id : ossrh
24- gpg-private-key : ${{ secrets.GPG_SECRET_KEY }}
25- gpg-passphrase : MAVEN_GPG_PASSPHRASE
26- server-username : MAVEN_USERNAME
27- server-password : MAVEN_CENTRAL_TOKEN
2826 - name : Setup git profile
2927 run : |
3028 git config --global user.name "github-actions[bot]"
3129 git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
32- - name : Publish Snapshot to Maven Central
33- run : mvn deploy -B -Possrh
30+ - name : Publish Snapshot to GitHub Packages
31+ run : mvn deploy -B
3432 env :
35- MAVEN_USERNAME : hap-java-dev
36- MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
37- MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3834 - name : Publish site
3935 run : mvn -B site-deploy -Dusername=github-actions -Dpassword=${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1212
1313permissions :
1414 contents : write
15+ packages : write
1516
1617jobs :
1718 build :
@@ -27,14 +28,11 @@ jobs:
2728 distribution : ' zulu'
2829 java-version : ' 11'
2930 architecture : x64
30- server-id : ossrh
31- gpg-private-key : ${{ secrets.GPG_SECRET_KEY }}
32- gpg-passphrase : MAVEN_GPG_PASSPHRASE
33- server-username : MAVEN_USERNAME
34- server-password : MAVEN_CENTRAL_TOKEN
31+ - name : Setup git profile
32+ run : |
33+ git config --global user.name "github-actions[bot]"
34+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
3535 - name : Maven release
36- run : mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -Possrh
36+ run : mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }}
3737 env :
38- MAVEN_USERNAME : hap-java-dev
39- MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
40- MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
38+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 278278 <url >https://hap-java.github.io/</url >
279279 </site >
280280 <repository >
281- <id >ossrh </id >
282- <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ </url >
281+ <id >github </id >
282+ <url >https://maven.pkg.github.com/hap-java/HAP-Java </url >
283283 </repository >
284284 <snapshotRepository >
285- <id >ossrh </id >
286- <url >https://s01.oss.sonatype.org/content/repositories/snapshots </url >
285+ <id >github </id >
286+ <url >https://maven.pkg.github.com/hap-java/HAP-Java </url >
287287 </snapshotRepository >
288288 </distributionManagement >
289289
You can’t perform that action at this time.
0 commit comments