config deploy to github
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ehlxr 2021-01-21 22:05:51 +08:00
parent c8ad808a0b
commit d968f97d68
4 changed files with 72 additions and 54 deletions

View File

@ -31,10 +31,10 @@
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
</plugin> </plugin>
<!--<plugin>--> <plugin>
<!-- <groupId>com.github.github</groupId>--> <groupId>com.github.github</groupId>
<!-- <artifactId>site-maven-plugin</artifactId>--> <artifactId>site-maven-plugin</artifactId>
<!--</plugin>--> </plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -45,10 +45,10 @@
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
</plugin> </plugin>
<!--<plugin>--> <plugin>
<!-- <groupId>com.github.github</groupId>--> <groupId>com.github.github</groupId>
<!-- <artifactId>site-maven-plugin</artifactId>--> <artifactId>site-maven-plugin</artifactId>
<!--</plugin>--> </plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -47,6 +47,15 @@
<skip>true</skip> <skip>true</skip>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
<message/>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

101
pom.xml
View File

@ -56,10 +56,10 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version> <version>2.8.2</version>
<!--<configuration>--> <configuration>
<!-- <altDeploymentRepository>maven.repo::default::file://${project.build.directory}/mvn-repo--> <altDeploymentRepository>maven.repo::default::file://${project.build.directory}/mvn-repo
<!-- </altDeploymentRepository>--> </altDeploymentRepository>
<!--</configuration>--> </configuration>
</plugin> </plugin>
<plugin> <plugin>
@ -90,55 +90,64 @@
</executions> </executions>
</plugin> </plugin>
<!--<plugin>--> <plugin>
<!-- &lt;!&ndash; Deploy the web site &ndash;&gt;--> <!-- Deploy the web site -->
<!-- <groupId>com.github.github</groupId>--> <groupId>com.github.github</groupId>
<!-- <artifactId>site-maven-plugin</artifactId>--> <artifactId>site-maven-plugin</artifactId>
<!-- <version>0.12</version>--> <version>0.12</version>
<!-- <executions>--> <executions>
<!-- <execution>--> <execution>
<!-- <goals>--> <goals>
<!-- <goal>site</goal>--> <goal>site</goal>
<!-- </goals>--> </goals>
<!-- &lt;!&ndash; select the Maven phase in which the plugin will be executed &ndash;&gt;--> <!-- select the Maven phase in which the plugin will be executed -->
<!-- <phase>deploy</phase>--> <phase>deploy</phase>
<!-- <configuration>--> <configuration>
<!-- &lt;!&ndash; Plugin configuration goes here &ndash;&gt;--> <!-- Plugin configuration goes here -->
<!-- <server>github</server>--> <userName>ehlxr</userName>
<!-- &lt;!&ndash; The commit message &ndash;&gt;--> <!--suppress UnresolvedMavenProperty -->
<!-- <message>init git maven repository</message>--> <password>${env.GITHUB_MVN_TOKEN}</password>
<!-- &lt;!&ndash; The location where the site is uploaded &ndash;&gt;--> <!-- The commit message -->
<!-- <repositoryName>mvn-repository</repositoryName> &lt;!&ndash; github repo name &ndash;&gt;--> <message>init git maven repository</message>
<!-- <repositoryOwner>ehlxr</repositoryOwner> &lt;!&ndash; organization or user name &ndash;&gt;--> <!-- The location where the site is uploaded -->
<!-- &lt;!&ndash; Use merge or override the content &ndash;&gt;--> <repositoryName>mvn-repository</repositoryName> <!-- github repo name -->
<!-- <merge>true</merge>--> <repositoryOwner>ehlxr</repositoryOwner> <!-- organization or user name -->
<!-- <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>--> <!-- Use merge or override the content -->
<!-- <branch>refs/heads/mvn-repo</branch>--> <merge>true</merge>
<!-- &lt;!&ndash;<includes>&ndash;&gt;--> <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
<!-- &lt;!&ndash; <include>**/*</include>&ndash;&gt;--> <branch>refs/heads/mvn-repo</branch>
<!-- &lt;!&ndash;</includes>&ndash;&gt;--> <!--<includes>-->
<!-- </configuration>--> <!-- <include>**/*</include>-->
<!-- </execution>--> <!--</includes>-->
<!-- </executions>--> </configuration>
<!--</plugin>--> </execution>
</executions>
</plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build>
<!--<distributionManagement>--> <plugins>
<!-- <repository>--> <plugin>
<!-- <id>maven.repo</id>--> <groupId>com.github.github</groupId>
<!-- <name>Local Staging Repository</name>--> <artifactId>site-maven-plugin</artifactId>
<!-- <url>file://${project.build.directory}/mvn-repo</url>--> </plugin>
<!-- </repository>--> </plugins>
<!--</distributionManagement>--> </build>
<distributionManagement> <distributionManagement>
<repository> <repository>
<id>github</id> <id>maven.repo</id>
<name>GitHub Apache Maven Packages</name> <name>Local Staging Repository</name>
<url>https://maven.pkg.github.com/ehlxr/mvn-repository</url> <url>file://${project.build.directory}/mvn-repo</url>
</repository> </repository>
</distributionManagement> </distributionManagement>
<!--<distributionManagement>-->
<!-- <repository>-->
<!-- <id>github</id>-->
<!-- <name>GitHub Apache Maven Packages</name>-->
<!-- <url>https://maven.pkg.github.com/ehlxr/mvn-repository</url>-->
<!-- </repository>-->
<!--</distributionManagement>-->
</project> </project>