Add workflow to tag a release #829
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: CI/CD build | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| build: | |
| name: Build main branch | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4.2.2 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Build with Maven | |
| run: mvn -DaltDeploymentRepository=local::file:deployment-repository --no-transfer-progress --batch-mode --update-snapshots deploy | |
| - name: Deploy to Artifactory | |
| if: ${{ github.repository == 'spring-projects/spring-batch' && github.ref_name == 'main' }} | |
| uses: spring-io/artifactory-deploy-action@v0.0.2 | |
| with: | |
| uri: 'https://repo.spring.io' | |
| username: ${{ secrets.ARTIFACTORY_USERNAME }} | |
| password: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
| build-name: 'spring-batch-main' | |
| repository: 'libs-snapshot-local' | |
| folder: 'deployment-repository' | |
| signing-key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| signing-passphrase: ${{ secrets.GPG_PASSPHRASE }} |