Skip to content

Commit 1a747ba

Browse files
committed
Add CI build workflow
1 parent 0eaa6aa commit 1a747ba

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci-build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI Build for 4.3.x
2+
3+
on:
4+
push:
5+
branches:
6+
- 4.3.x
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
name: CI Build for 4.3.x
12+
steps:
13+
14+
- name: Checkout source code
15+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16+
with:
17+
ref: '4.3.x'
18+
19+
- name: Set up Gradle
20+
uses: spring-io/spring-gradle-build-action@6efab5a8a19abb6f42ee20e9d6207859bf2fca02 # v2.0.1
21+
with:
22+
java-version: '8'
23+
distribution: 'oracle'
24+
25+
- name: Setup JFrog Cli
26+
uses: jfrog/setup-jfrog-cli@901bb9632db90821c2d3f076012bdeaf66598555 # v3.4.1
27+
env:
28+
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
29+
30+
- name: Configure JFrog Cli
31+
run: |
32+
jf gradlec \
33+
--use-wrapper \
34+
--repo-deploy libs-snapshot-local
35+
echo JFROG_CLI_BUILD_NAME=${{ github.event.repository.name }}-${{ github.ref_name }} >> $GITHUB_ENV
36+
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
37+
38+
- name: Build the project
39+
run: |
40+
jf gradle clean build -x asciidoc -x asciidoctorPdf -Palltests --parallel

0 commit comments

Comments
 (0)