Skip to content

Commit 1943810

Browse files
authored
release upload (#5)
* release assets upload * sast for later
1 parent e843c6d commit 1943810

2 files changed

Lines changed: 52 additions & 5 deletions

File tree

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

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,40 @@ on:
33
pull_request:
44
branches: [master]
55
jobs:
6+
# sast-scan:
7+
# runs-on: ubuntu-latest
8+
# # Skip any PR created by dependabot to avoid permission issues:
9+
# if: (github.actor != 'dependabot[bot]')
10+
# steps:
11+
# - uses: actions/checkout@v5
12+
# - uses: actions/setup-node@v4
13+
# with:
14+
# node-version: "22"
15+
# - run: npm install -g snyk
16+
# - run: snyk config set api=${{ secrets.SNYK_API_KEY }}
17+
# - run: snyk code test src/main
18+
malware-scan:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v5
22+
- name: Malware Scanner # https://github.com/dell/common-github-actions/blob/main/malware-scanner/README.md
23+
uses: dell/common-github-actions/malware-scanner@main
24+
with:
25+
directories: .
26+
options: -ri
627
build-and-test:
728
runs-on: ubuntu-latest
829
steps:
930
- uses: actions/checkout@v5
31+
- name: Malware Scanner # https://github.com/dell/common-github-actions/blob/main/malware-scanner/README.md
32+
uses: dell/common-github-actions/malware-scanner@main
33+
with:
34+
directories: .
35+
options: -ri
1036
- name: Set up JDK 8 for x64
1137
uses: actions/setup-java@v4
1238
with:
1339
java-version: "8"
1440
distribution: "temurin"
1541
architecture: x64
1642
- 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)