Add GitHub actions for CI builds and snapshot deployment. #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Snapshots | |
| on: | |
| push: | |
| branches: [ main ] | |
| 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-release/actions/setup-maven@main | |
| with: | |
| java-version: 'main' | |
| develocity-access-key: '' | |
| - name: Verify Artifacts with BOM client | |
| run: ./mvnw -Ddevelocity.cache.local.enabled=false -Ddevelocity.cache.remove.enabled=false -Pwith-bom-client verify -B -U | |
| 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-release/actions/setup-maven@main | |
| 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-release/actions/maven-artifactory-deploy@main | |
| 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 }}' |