File tree Expand file tree Collapse file tree 2 files changed +16
-43
lines changed Expand file tree Collapse file tree 2 files changed +16
-43
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,21 @@ jobs:
26
26
- name : Maven Build
27
27
run : mvn --batch-mode clean package
28
28
29
+ - name : Setupt JFro CLI
30
+ uses : jfrog/setup-jfrog-cli@v3
31
+ env :
32
+ JF_ARTIFACTORY_SPRING : ${{ secrets.JF_ARTIFACTORY_SPRING }}
29
33
- name : Deploy to Artifactory
34
+ run : |
35
+ jfrog rt mvnc \
36
+ --server-id-deploy repo.spring.io \
37
+ --repo-deploy-releases release \
38
+ --repo-deploy-snapshots snapshot
39
+ echo JFROG_CLI_BUILD_NAME=sbm-support-rewrite >> $GITHUB_ENV
40
+ echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
41
+ - name : Build and Publish
30
42
env :
31
- ARTIFACTORY_USERNAME : ${{ secrets.ARTIFACTORY_USERNAME }}
32
- ARTIFACTORY_PASSWORD : ${{ secrets.ARTIFACTORY_PASSWORD }}
33
- GRADLE_ENTERPRISE_CACHE_USERNAME : ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
34
- GRADLE_ENTERPRISE_CACHE_PASSWORD : ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
35
- GRADLE_ENTERPRISE_ACCESS_KEY : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
36
- run : mvn -B deploy -Pci,artifactory
43
+ DISABLE_SAMPLES : true
44
+ run : |
45
+ jfrog rt mvn clean install -B -DskipTests
46
+ jfrog rt build-publish
Original file line number Diff line number Diff line change @@ -416,43 +416,6 @@ limitations under the License.
416
416
</plugins >
417
417
</build >
418
418
<profiles >
419
- <profile >
420
- <id >artifactory</id >
421
- <properties >
422
- <maven .test.skip>true</maven .test.skip>
423
- </properties >
424
- <build >
425
- <plugins >
426
- <plugin >
427
- <groupId >org.jfrog.buildinfo</groupId >
428
- <artifactId >artifactory-maven-plugin</artifactId >
429
- <version >${artifactory-maven-plugin.version} </version >
430
- <inherited >false</inherited >
431
- <executions >
432
- <execution >
433
- <id >deploy-to-artifactory</id >
434
- <goals >
435
- <goal >publish</goal >
436
- </goals >
437
- <configuration >
438
- <publisher >
439
- <contextUrl >https://repo.spring.io</contextUrl >
440
- <username >${env.ARTIFACTORY_USERNAME} </username >
441
- <password >${env.ARTIFACTORY_PASSWORD} </password >
442
- <repoKey >libs-milestone-local</repoKey >
443
- <snapshotRepoKey >libs-snapshot-local</snapshotRepoKey >
444
- </publisher >
445
- <buildInfo >
446
- <buildName >CI build for ${project.name} ${project.version} </buildName >
447
- </buildInfo >
448
- </configuration >
449
- </execution >
450
- </executions >
451
- </plugin >
452
- </plugins >
453
- </build >
454
- </profile >
455
-
456
419
<profile >
457
420
<id >ci</id >
458
421
<build >
You can’t perform that action at this time.
0 commit comments