Skip to content

Commit

Permalink
Deploy from GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Mar 12, 2024
1 parent 2717f4e commit 64fda23
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64fda23

Please sign in to comment.