Skip to content

Commit a20eacf

Browse files
[RM] Support #86256. Added workflow steps to publish snapshots and detect unwelcomed words
1 parent 0634233 commit a20eacf

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Publish Snapshot
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Set up JDK 11
12+
uses: actions/setup-java@v4
13+
with:
14+
java-version: 11
15+
distribution: liberica
16+
17+
- name: Setup Gradle
18+
uses: gradle/actions/setup-gradle@v4
19+
with:
20+
gradle-version: wrapper
21+
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Upload Snapshots
26+
uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main
27+
with:
28+
build-target: 'Sonatype'
29+
secrets:
30+
sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
31+
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
32+
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
33+
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
34+
nvd-api-key: ${{ secrets.NVD_APIKEY }}

.github/workflows/ci-workflow.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,26 @@ jobs:
1515
distribution: liberica
1616

1717
- name: Setup Gradle
18-
uses: gradle/actions/setup-gradle@v3
18+
uses: gradle/actions/setup-gradle@v4
1919
with:
2020
gradle-version: wrapper
2121

2222
- name: Checkout repository
2323
uses: actions/checkout@v4
2424

25+
- name: Prepare a tool to detect unwelcome words
26+
uses: actions/checkout@v4
27+
with:
28+
repository: exactpro-th2/ci-github-action
29+
ref: master
30+
token: ${{ secrets.PAT_CI_ACTION }}
31+
path: ci-github-unwelcome-words-action
32+
33+
- name: Run CI action to detect unwelcome words
34+
uses: ./ci-github-unwelcome-words-action
35+
with:
36+
ref: ${{ github.sha }}
37+
2538
- name: Build project and run tests
2639
run: ./gradlew clean build
2740

@@ -34,7 +47,7 @@ jobs:
3447
**/build/reports/
3548
**/build/test-results/
3649
37-
- name: Upload archives
50+
- name: Upload Archives
3851
env:
3952
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
4053
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

0 commit comments

Comments
 (0)