Skip to content

Commit 13dfe52

Browse files
committed
Add GitHub actions CI.
See spring-projects/spring-data-build#2764.
1 parent bb351b5 commit 13dfe52

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/ci.yml

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

.github/workflows/snapshots.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Snapshots
2+
3+
on:
4+
push:
5+
branches: [ main, 5.0.x, 4.5.x, 'issue/**' ]
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-cassandra'
24+
username: '${{ secrets.ARTIFACTORY_USERNAME }}'
25+
password: '${{ secrets.ARTIFACTORY_PASSWORD }}'

0 commit comments

Comments
 (0)