-
Notifications
You must be signed in to change notification settings - Fork 20
48 lines (45 loc) · 1.76 KB
/
Copy pathsnapshots.yml
File metadata and controls
48 lines (45 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Snapshots
on:
workflow_dispatch:
push:
branches: [ 2025.0.x ]
permissions: read-all
jobs:
verify:
name: Verify artifacts with BOM client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Java and Maven
uses: spring-projects/spring-data-build/actions/setup-maven@3.5.x
with:
java-version: 'main'
develocity-access-key: ''
- name: Verify Artifacts with BOM client
uses: spring-projects/spring-data-build/actions/maven-build@3.5.x
with:
additional-options: '-Ddevelocity.cache.local.enabled=false -Ddevelocity.cache.remove.enabled=false -Pwith-bom-client'
settings-xml: '${{ vars.SETTINGS_XML }}'
build-snapshots:
name: Build and deploy snapshots
runs-on: ubuntu-latest
needs: verify
steps:
- uses: actions/checkout@v6
- name: Setup Java and Maven
uses: spring-projects/spring-data-build/actions/setup-maven@3.5.x
with:
java-version: 'main'
develocity-access-key: '${{ secrets.DEVELOCITY_ACCESS_KEY }}'
- name: Deploy to Artifactory
if: ${{ github.repository_owner == 'spring-projects' }}
uses: spring-projects/spring-data-build/actions/maven-artifactory-deploy@3.5.x
with:
build-name: 'spring-data-bom'
additional-options: '-Ddevelocity.cache.local.enabled=false -Ddevelocity.cache.remove.enabled=false'
username: '${{ secrets.ARTIFACTORY_USERNAME }}'
password: '${{ secrets.ARTIFACTORY_PASSWORD }}'
context-url: '${{ vars.ARTIFACTORY_CONTEXT_URL }}'
repository: '${{ vars.ARTIFACTORY_REPOSITORY }}'
project: '${{ vars.ARTIFACTORY_PROJECT }}'
settings-xml: '${{ vars.SETTINGS_XML }}'