This repository was archived by the owner on Feb 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Release to OSSRH Sonatype
22on :
33 push :
4- branches :
5- - develop
6- - master
4+ tags :
5+ - ' v*'
76
87jobs :
98 gradle-wrapper-validation :
109 name : Validate Gradle Wrapper
1110 runs-on : ubuntu-latest
12- if : github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'
1311 steps :
1412 - name : Fetch sources
1513 uses : actions/checkout@v2
1614
1715 - name : Validate Gradle Wrapper
1816 uses : gradle/wrapper-validation-action@v1
1917
20- release-snapshot :
21- name : Release snapshot version
18+ release :
19+ name : Release to Sonatype OSSRH
2220 needs : gradle-wrapper-validation
2321 runs-on : ubuntu-latest
24- if : github.ref == 'refs/heads/develop'
2522 steps :
2623 - name : Fetch sources
2724 uses : actions/checkout@v2
@@ -45,13 +42,14 @@ jobs:
4542 echo "${{secrets.SIGNING_SECRET_KEY_RING_CONTENT}}" | base64 -d > ringkey.gpg
4643 gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" --output secring.gpg ringkey.gpg
4744
48- - name : Release Deployment to Snapshot Repository
45+ - name : Release to OSSRH Staging repository
4946 run : |
5047 ./gradlew publish -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} \
5148 -Psigning.password=${{secrets.SIGNING_PASSWORD}} \
5249 -Psigning.secretKeyRingFile=secring.gpg \
5350 -PossrhUsername=${{secrets.OSSRH_USERNAME}} \
54- -PossrhPassword=${{secrets.OSSRH_PASSWORD}}
51+ -PossrhPassword=${{secrets.OSSRH_PASSWORD}} \
52+ -Prelease
5553
5654 - name : Post Setting GPG key
5755 run : rm -rf *.gpg
You can’t perform that action at this time.
0 commit comments