Skip to content

Commit 81edd0d

Browse files
committed
chore: deploy javadocs to gh-pages on commit to master
1 parent ca8bc04 commit 81edd0d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ jobs:
3535
with:
3636
name: jsonurl-maven-repository
3737
path: snapshot/*
38+
- name: Publish gh-pages
39+
if: |
40+
success()
41+
&& github.repository_owner == 'jsonurl'
42+
&& github.ref == 'refs/heads/master'
43+
# '-Dscmpublish.dryRun=true'
44+
run: >
45+
mvn '-Dscmpublish.checkinComment=doc: Update by action ${{ github.workflow }}.${{ github.job }}/${{ github.run_id }} on behalf of ${{ github.actor }} for ${{ github.event_name }} ${{ github.sha }}'
46+
'-Dscmpublish.pubScmUrl=scm:git:https://github.com/${{ github.repository }}.git'
47+
-B -Ppublish-javadoc-site javadoc:aggregate scm-publish:publish-scm
3848
3949
matrix-build:
4050
needs: artifact
@@ -105,7 +115,5 @@ jobs:
105115
env:
106116
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107117
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
108-
- name: Collect debugging info
109-
run: ls -lR
110118

111119

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<scmBranch>gh-pages</scmBranch>
9191
<content>${project.reporting.outputDirectory}/apidocs</content>
9292
<checkinComment>doc: update by maven-scm-publish-plugin</checkinComment>
93+
<serverId>github</serverId>
9394
<ignorePathsToDelete>
9495
<ignorePathsToDelete>.gitignore</ignorePathsToDelete>
9596
<ignorePathsToDelete>.gitattributes</ignorePathsToDelete>

0 commit comments

Comments
 (0)