Skip to content

Commit a8d453f

Browse files
christophstroblmp911de
authored andcommitted
Add GitHub actions for CI builds and snapshot deployment.
See spring-projects/spring-data-build#2764
1 parent a8f693c commit a8d453f

2 files changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main, 5.0.x, 4.5.x, 'issue/**' ]
7+
8+
permissions: read-all
9+
10+
jobs:
11+
build-java:
12+
strategy:
13+
matrix:
14+
java-version: [ base, main ]
15+
name: Build project
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v6
19+
- name: Setup Java and Maven
20+
uses: spring-projects/spring-data-release/actions/setup-maven@main
21+
with:
22+
java-version: ${{ matrix.java-version }}
23+
develocity-access-key: '${{ secrets.DEVELOCITY_ACCESS_KEY }}'
24+
- name: Setup MongoDB Server
25+
uses: spring-projects/spring-data-release/actions/setup-mongodb@main
26+
with:
27+
replica-set: 'rs0'
28+
- name: Build
29+
uses: spring-projects/spring-data-release/actions/maven-build@main
30+
with:
31+
additional-options: '-Pit'

.github/workflows/snapshots.yml

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

0 commit comments

Comments
 (0)