Skip to content

Refine GitHub Actions workflows. #112

Refine GitHub Actions workflows.

Refine GitHub Actions workflows. #112

Workflow file for this run

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 }}'