Skip to content

Commit 2cc2a81

Browse files
committed
Remove GitHub Packages deployment and update release workflow
1 parent 1c9ab61 commit 2cc2a81

File tree

2 files changed

+19
-38
lines changed

2 files changed

+19
-38
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
cache: 'maven'
2222

2323
- name: Build with Maven
24-
run: mvn -B clean package --file pom.xml
24+
run: mvn -B clean package -DskipTests
2525

2626
- name: Create Release
2727
uses: softprops/action-gh-release@v1

pom.xml

Lines changed: 18 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -113,59 +113,48 @@
113113

114114
<plugin>
115115
<groupId>org.apache.maven.plugins</groupId>
116-
<artifactId>maven-assembly-plugin</artifactId>
116+
<artifactId>maven-source-plugin</artifactId>
117117
<version>3.3.0</version>
118-
<configuration>
119-
<descriptorRefs>
120-
<descriptorRef>jar-with-dependencies</descriptorRef>
121-
</descriptorRefs>
122-
<archive>
123-
<manifest>
124-
<mainClass>wtx.woocommerce.WooCommerceApiClientUsageDemo</mainClass>
125-
</manifest>
126-
</archive>
127-
<appendAssemblyId>false</appendAssemblyId>
128-
</configuration>
129118
<executions>
130119
<execution>
131-
<id>assemble-jar-with-dependencies</id>
132-
<phase>package</phase>
120+
<id>attach-sources</id>
133121
<goals>
134-
<goal>single</goal>
122+
<goal>jar-no-fork</goal>
135123
</goals>
136124
</execution>
137125
</executions>
138126
</plugin>
139127

140128
<plugin>
141129
<groupId>org.apache.maven.plugins</groupId>
142-
<artifactId>maven-source-plugin</artifactId>
143-
<version>3.3.0</version>
130+
<artifactId>maven-javadoc-plugin</artifactId>
131+
<version>3.6.3</version>
144132
<executions>
145133
<execution>
146-
<id>attach-sources</id>
134+
<id>attach-javadocs</id>
147135
<goals>
148-
<goal>jar-no-fork</goal>
136+
<goal>jar</goal>
149137
</goals>
150138
</execution>
151139
</executions>
152140
</plugin>
153141

154142
<plugin>
155143
<groupId>org.apache.maven.plugins</groupId>
156-
<artifactId>maven-deploy-plugin</artifactId>
157-
<version>3.1.1</version>
158-
</plugin>
159-
160-
<plugin>
161-
<groupId>org.apache.maven.plugins</groupId>
162-
<artifactId>maven-javadoc-plugin</artifactId>
163-
<version>3.6.3</version>
144+
<artifactId>maven-assembly-plugin</artifactId>
145+
<version>3.3.0</version>
146+
<configuration>
147+
<descriptorRefs>
148+
<descriptorRef>jar-with-dependencies</descriptorRef>
149+
</descriptorRefs>
150+
<appendAssemblyId>false</appendAssemblyId>
151+
</configuration>
164152
<executions>
165153
<execution>
166-
<id>attach-javadocs</id>
154+
<id>assemble-jar-with-dependencies</id>
155+
<phase>package</phase>
167156
<goals>
168-
<goal>jar</goal>
157+
<goal>single</goal>
169158
</goals>
170159
</execution>
171160
</executions>
@@ -208,12 +197,4 @@
208197
</developer>
209198
</developers>
210199

211-
<distributionManagement>
212-
<repository>
213-
<id>github</id>
214-
<name>GitHub Packages</name>
215-
<url>https://maven.pkg.github.com/wtx-labs/woocommerce-api-client-java</url>
216-
</repository>
217-
</distributionManagement>
218-
219200
</project>

0 commit comments

Comments
 (0)