Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit fd804b6

Browse files
authored
Merge pull request #36 from ndw/fix-deploy
Still hacking
2 parents 0792236 + d70b55f commit fd804b6

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,18 @@ jobs:
5555
./gradlew -PsaxonVersion=10.9 clean test
5656
./gradlew -PsaxonVersion=11.7 clean test
5757
./gradlew -PsaxonVersion=12.8 clean test
58-
./gradlew clean dist website mavenReleaseArtifact
58+
./gradlew clean dist website
5959
60-
- name: Deploy
61-
if: ${{ env.CI_BRANCH == 'master' && env.CI_TAG != '' }}
60+
- name: Publish to Sonatype
61+
if: ${{ env.HAVE_GPGKEYURI == 'true' && env.CI_BRANCH == 'master' && env.CI_TAG != '' }}
6262
run: |
63+
curl -s -o secret.gpg ${{ secrets.GPGKEYURI }}
64+
./gradlew -PsonatypePassword="${{ secrets.SONATYPEPASS }}" \
65+
-Psigning.keyId="${{ secrets.SIGNKEY }}" \
66+
-Psigning.password="${{ secrets.SIGNPSW }}" \
67+
-Psigning.secretKeyRingFile=./secret.gpg \
68+
mavenReleaseArtifact
69+
rm -f secret.gpg
6370
curl --request POST --verbose --header "Authorization: Bearer ${BEARER}" --form bundle="@build/distributions/maven-sinclude-${CI_TAG}" https://central.sonatype.com/api/v1/publisher/upload
6471
6572
- name: Deploy master to gh-pages

0 commit comments

Comments
 (0)