File tree Expand file tree Collapse file tree 2 files changed +23
-17
lines changed Expand file tree Collapse file tree 2 files changed +23
-17
lines changed Original file line number Diff line number Diff line change 99 build :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v3
12+ - uses : actions/checkout@v4
1313 with :
1414 fetch-depth : 0
1515
1616 - name : Set up JDK 8
17- uses : actions/setup-java@v3
17+ uses : actions/setup-java@v4
1818 with :
1919 java-version : ' 8'
2020 distribution : ' temurin'
21+ cache : ' maven'
2122
2223 - name : Build with Maven
2324 run : mvn -B clean package --file pom.xml
2425
2526 - name : Create Release
2627 id : create_release
27- uses : actions/create-release@v1
28- env :
29- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ uses : softprops/action-gh-release@v1
3029 with :
31- tag_name : ${{ github.ref }}
32- release_name : Release ${{ github.ref }}
30+ name : Release ${{ github.ref_name }}
3331 draft : false
3432 prerelease : false
35-
36- - name : Upload Release Asset
37- uses : actions/upload-release-asset@v1
33+ generate_release_notes : true
3834 env :
3935 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+
37+ - name : Upload Release Asset
38+ uses : softprops/action-gh-release@v1
4039 with :
41- upload_url : ${{ steps.create_release.outputs.upload_url }}
42- asset_path : ./target/woocommerce-api-client-java-0.9.0.jar
43- asset_name : woocommerce-api-client-java-0.9.0.jar
44- asset_content_type : application/java-archive
40+ files : |
41+ target/woocommerce-api-client-0.9.0.jar
42+ target/woocommerce-api-client-0.9.0-sources.jar
43+ target/woocommerce-api-client-0.9.0-javadoc.jar
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 161161 <groupId >org.apache.maven.plugins</groupId >
162162 <artifactId >maven-javadoc-plugin</artifactId >
163163 <version >3.6.3</version >
164- <configuration >
165- <failOnError >false</failOnError >
166- </configuration >
164+ <executions >
165+ <execution >
166+ <id >attach-javadocs</id >
167+ <goals >
168+ <goal >jar</goal >
169+ </goals >
170+ </execution >
171+ </executions >
167172 </plugin >
168173
169174 </plugins >
You can’t perform that action at this time.
0 commit comments