Skip to content

Commit cb0965b

Browse files
committed
release assets upload
1 parent e843c6d commit cb0965b

2 files changed

Lines changed: 26 additions & 5 deletions

File tree

.github/workflows/build-on-pull-request.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,3 @@ jobs:
1414
distribution: "temurin"
1515
architecture: x64
1616
- run: mvn package -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
17-
- run: mkdir staging && cp target/*.jar staging
18-
- uses: actions/upload-artifact@v4
19-
with:
20-
name: Package
21-
path: staging
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build and test on release
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
jobs:
7+
build-and-test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v5
11+
- name: Set up JDK 8 for x64
12+
uses: actions/setup-java@v4
13+
with:
14+
java-version: "8"
15+
distribution: "temurin"
16+
architecture: x64
17+
- run: mvn package -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
18+
- name: "upload release assets"
19+
uses: softprops/action-gh-release@cd28b0f5ee8571b76cfdaa62a30d51d752317477 #https://github.com/softprops/action-gh-release/issues/216
20+
if: github.ref_type == 'tag'
21+
with:
22+
body: |
23+
:closed_book: File 1 of 1 uploaded: junit-xml-merger.jar
24+
files: |
25+
target/junit-xml-merger.jar
26+
append_body: true

0 commit comments

Comments
 (0)