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

Commit 53e1824

Browse files
committed
add GH publish docs profile
1 parent 8756fda commit 53e1824

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ jobs:
5656
- name: "Perform release"
5757
run: |
5858
./perform-release.sh
59+
env:
60+
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}

perform-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
3333
git push origin ${CURRENT_BRANCH} --tags
3434

3535
echo "Publish release javadoc ${RELEASE_VERSION}"
36-
./mvnw javadoc:aggregate scm-publish:publish-scm -Ppublish-site,javadoc-jdk-8u121 --no-transfer-progress
36+
./mvnw javadoc:aggregate scm-publish:publish-scm -Pgh-publish-site,javadoc-jdk-8u121 --no-transfer-progress

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,30 @@
599599
</plugins>
600600
</build>
601601
</profile>
602+
<profile>
603+
<id>gh-publish-site</id>
604+
<build>
605+
<plugins>
606+
<plugin>
607+
<!--
608+
mvn clean javadoc:aggregate scm-publish:publish-scm -P publish-site
609+
-->
610+
<groupId>org.apache.maven.plugins</groupId>
611+
<artifactId>maven-scm-publish-plugin</artifactId>
612+
<version>${maven-scm-publish-plugin.version}</version>
613+
<configuration>
614+
<checkoutDirectory>${project.build.directory}/javadoc-stage</checkoutDirectory>
615+
<checkinComment>publishing Javadoc for ${project.artifactId}:${project.version}
616+
</checkinComment>
617+
<content>${project.build.directory}/site</content>
618+
<skipDeletedFiles>false</skipDeletedFiles>
619+
<pubScmUrl>scm:git:https://oauth2:${env.GITHUB_TOKEN}@github.com/commercetools/commercetools-jvm-sdk.git</pubScmUrl>
620+
<scmBranch>gh-pages</scmBranch>
621+
</configuration>
622+
</plugin>
623+
</plugins>
624+
</build>
625+
</profile>
602626
<profile>
603627
<id>javadoc-jdk-8u121</id>
604628
<activation>

0 commit comments

Comments
 (0)