Skip to content

Commit 2d1541f

Browse files
committed
Move snapshot build and deploy to GitHub Actions
Closes gh-409
1 parent 7db7c97 commit 2d1541f

File tree

2 files changed

+34
-10
lines changed

2 files changed

+34
-10
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Deploy Snapshot
2+
on:
3+
push:
4+
branches:
5+
- main
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
jobs:
9+
build:
10+
if: ${{ github.repository == 'spring-io/spring-javaformat' }}
11+
name: Build and Deploy Snapshot
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check Out Code
15+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16+
- name: Set Up Java
17+
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
18+
with:
19+
distribution: 'liberica'
20+
java-version: 17
21+
cache: maven
22+
- name: Build and Publish
23+
run: ./mvnw clean deploy --no-transfer-progress --update-snapshots -Dfull -DaltDeploymentRepository=distribution::default::file://$(pwd)/distribution-repository
24+
- name: Deploy
25+
uses: spring-io/artifactory-deploy-action@26bbe925a75f4f863e1e529e85be2d0093cac116 # v0.0.1
26+
with:
27+
uri: 'https://repo.spring.io'
28+
username: ${{ secrets.ARTIFACTORY_USERNAME }}
29+
password: ${{ secrets.ARTIFACTORY_PASSWORD }}
30+
build-name: spring-javaformat
31+
repository: 'libs-snapshot-local'
32+
folder: 'distribution-repository'
33+
signing-key: ${{ secrets.GPG_PRIVATE_KEY }}
34+
signing-passphrase: ${{ secrets.GPG_PASSPHRASE }}

ci/pipeline.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,6 @@ jobs:
138138
- put: slack-alert
139139
params:
140140
<<: *slack-fail-params
141-
- put: artifactory-repo
142-
params:
143-
<<: *artifactory-repo-put-params
144-
get_params:
145-
threads: 8
146-
on_failure:
147-
do:
148-
- put: slack-alert
149-
params:
150-
<<: *slack-fail-params
151141
- put: slack-alert
152142
params:
153143
<<: *slack-success-params

0 commit comments

Comments
 (0)