Skip to content

Commit 9f1da60

Browse files
committed
downloads-maven-plugin
1 parent 466eb2e commit 9f1da60

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

pom.xml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
</configuration>
116116
</plugin>
117117

118-
<!-- To push to Github -->
118+
<!-- To create the Github release -->
119119
<plugin>
120120
<groupId>org.apache.maven.plugins</groupId>
121121
<artifactId>maven-release-plugin</artifactId>
@@ -124,6 +124,27 @@
124124
<tagNameFormat>v@{project.version}</tagNameFormat>
125125
</configuration>
126126
</plugin>
127+
128+
<!-- To upload code to Github -->
129+
<plugin>
130+
<groupId>com.github.github</groupId>
131+
<artifactId>downloads-maven-plugin</artifactId>
132+
<version>0.6</version>
133+
<configuration>
134+
<description>Release ${project.version}</description>
135+
<override>true</override>
136+
<includeAttached>true</includeAttached>
137+
<server>github.com</server>
138+
</configuration>
139+
<executions>
140+
<execution>
141+
<goals>
142+
<goal>upload</goal>
143+
</goals>
144+
<phase>deploy</phase>
145+
</execution>
146+
</executions>
147+
</plugin>
127148
</plugins>
128149
</build>
129150
</project>

0 commit comments

Comments
 (0)