File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 run : |
3232 git config user.name "github-actions[bot]"
3333 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
34- mvn -B -batch-mode release:prepare release:perform --file pom.xml
34+ # Only release production modules, exclude all sample modules
35+ mvn -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am -batch-mode release:prepare release:perform --file pom.xml
3536 env :
3637 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
3738 MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 9494
9595 # Run release:prepare with explicit release version
9696 # Maven will automatically calculate the next development version
97- ./mvnw -B release:prepare \
97+ # Only prepare production modules, exclude all sample modules
98+ ./mvnw -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am release:prepare \
9899 -DreleaseVersion="${VERSION}" \
99100 -Dtag="${TAG_NAME}" \
100101 -DpushChanges=false
@@ -108,7 +109,8 @@ jobs:
108109 echo "Performing release and deploying to Maven Central"
109110
110111 # Run release:perform to build and deploy
111- ./mvnw -B release:perform \
112+ # Only release production modules, exclude all sample modules
113+ ./mvnw -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am release:perform \
112114 -DlocalCheckout=true \
113115 -DeployAtEnd=true
114116 env :
Original file line number Diff line number Diff line change 254254 <useReleaseProfile >false</useReleaseProfile >
255255 <releaseProfiles >release</releaseProfiles >
256256 <goals >deploy</goals >
257- <!-- Only release production modules, exclude all sample modules -->
258- <arguments >-pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am</arguments >
259257 </configuration >
260258 </plugin >
261259 </plugins >
You can’t perform that action at this time.
0 commit comments