From 64fda23e5726fe502c4a3b65ced2ff9db2d2dbaf Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Tue, 12 Mar 2024 13:23:56 +0100 Subject: [PATCH] Deploy from GitHub Actions See gh-1508 --- .github/workflows/build.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7aa235a700..66c55c8d57 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,20 @@ jobs: - name: Maven deploy if: ${{ matrix.runner.deploy-snapshots }} - run: echo "Would deploy" + run: ./mvnw --no-transfer-progress --batch-mode --update-snapshots -DaltDeploymentRepository=local::file:./maven-repo/ deploy + + - name: Deploy to repo.spring.io + if: ${{ matrix.runner.deploy-snapshots }} + uses: spring-io/artifactory-deploy-action@90d28f97f3e3735888ffa8648828d5f2f1b1ad21 + with: + uri: 'https://repo.spring.io' + username: ${{ secrets.ARTIFACTORY_USERNAME }} + password: ${{ secrets.ARTIFACTORY_PASSWORD }} + build-name: ${{ format('initializr-{0}', github.ref_name)}} + repository: 'libs-snapshot-local' + folder: './maven-repo/' + signing-key: ${{ secrets.GPG_PRIVATE_KEY }} + signing-passphrase: ${{ secrets.GPG_PASSPHRASE }} - name: Send notification uses: ./.github/actions/send-notification