-
Notifications
You must be signed in to change notification settings - Fork 2.4k
40 lines (33 loc) · 1.14 KB
/
continuous-integration-43x.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI/CD build for 4.3.x
on:
workflow_dispatch:
push:
branches:
- 4.3.x
jobs:
build:
runs-on: ubuntu-latest
name: Build 4.3.x branch
steps:
- name: Checkout source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: '4.3.x'
- name: Set up JDK 8
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
java-version: '8'
distribution: 'adopt'
- name: Setup JFrog Cli
uses: jfrog/setup-jfrog-cli@901bb9632db90821c2d3f076012bdeaf66598555 # v3.4.1
env:
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
run: |
jf gradlec --use-wrapper --repo-deploy libs-snapshot-local
echo JFROG_CLI_BUILD_NAME=${{ github.event.repository.name }}-${{ github.ref_name }} >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Build the project and Deploy to Artifactory
run: |
jf gradle build install artifactoryPublish -x test
jf rt build-publish