Skip to content

Commit 4e91509

Browse files
committed
Add GitHub snapshots action.
1 parent 133032f commit 4e91509

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121
java-version: ${{ matrix.java-version }}
2222
develocity-access-key: '${{ secrets.DEVELOCITY_ACCESS_KEY }}'
2323
- name: Build
24-
run: ./mvnw -Dsort -B -U -Pall-dbs clean dependency:list verify
25-
- name: Test Summary
26-
uses: test-summary/[email protected]
24+
uses: spring-projects/spring-data-release/actions/maven-build@main
2725
with:
28-
paths: '**/TEST-*.xml'
29-
if: always()
26+
run: ./mvnw -Dsort -B -U -Pall-dbs clean dependency:list verify

.github/workflows/snapshots.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and deploy snapshots
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
permissions: read-all
8+
9+
jobs:
10+
build-snapshots:
11+
name: Build and deploy snapshots
12+
if: ${{ github.repository_owner == 'spring-projects' }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
- name: Setup Java and Maven
17+
uses: spring-projects/spring-data-release/actions/setup-maven@main
18+
with:
19+
develocity-access-key: '${{ secrets.DEVELOCITY_ACCESS_KEY }}'
20+
- name: Deploy to Artifactory
21+
uses: spring-projects/spring-data-release/actions/maven-artifactory-deploy@main
22+
with:
23+
build-name: 'spring-data-jpa'
24+
username: '${{ secrets.ARTIFACTORY_USERNAME }}'
25+
password: '${{ secrets.ARTIFACTORY_PASSWORD }}'

0 commit comments

Comments
 (0)