Skip to content

Commit 6039aab

Browse files
committed
Move Gradle task directly to the ci-snapshot.yml
1 parent 2cd7eac commit 6039aab

File tree

1 file changed

+5
-46
lines changed

1 file changed

+5
-46
lines changed

.github/workflows/ci-snapshot.yml

Lines changed: 5 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,50 +6,9 @@ on:
66
branches:
77
- main
88

9-
env:
10-
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
11-
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
12-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
13-
149
jobs:
15-
build-snapshot-with-gradle:
16-
runs-on: ubuntu-latest
17-
name: CI Build SNAPSHOT for ${{ github.ref_name }}
18-
steps:
19-
20-
- uses: actions/checkout@v4
21-
with:
22-
show-progress: false
23-
24-
- name: Set up Gradle
25-
uses: spring-io/spring-gradle-build-action@v2
26-
27-
- name: Checkout Common Repo
28-
uses: actions/checkout@v4
29-
with:
30-
repository: artembilan/spring-messaging-build-tools
31-
path: build
32-
show-progress: false
33-
34-
- name: Copy the spring-project-init.gradle
35-
run: rsync build/spring-project-init.gradle ~/.gradle/init.d/
36-
37-
- uses: jfrog/setup-jfrog-cli@v3
38-
with:
39-
version: 2.51.1
40-
env:
41-
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
42-
43-
- name: Configure JFrog Cli
44-
run: |
45-
jf gradlec \
46-
--use-wrapper \
47-
--repo-deploy libs-snapshot-local
48-
echo JFROG_CLI_BUILD_NAME=${{ github.event.repository.name }}-${{ github.ref_name }} >> $GITHUB_ENV
49-
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
50-
51-
- name: Build and Publish
52-
run: |
53-
jf gradle clean build dist artifactoryPublish
54-
jf rt build-publish
55-
10+
build-snapshot:
11+
uses: artembilan/spring-messaging-build-tools/.github/workflows/spring-artifactory-gradle-snapshot.yml@main
12+
secrets: inherit
13+
with:
14+
gradleTasks: dist

0 commit comments

Comments
 (0)