-
Notifications
You must be signed in to change notification settings - Fork 394
41 lines (35 loc) · 1.17 KB
/
ci.yml
File metadata and controls
41 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '.github/**'
jobs:
build:
runs-on: ubuntu-latest
name: CI Build
steps:
- name: Checkout source code
uses: actions/checkout@v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@v4.7.1
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: ./mvnw -DaltDeploymentRepository=local::file:deployment-repository --no-transfer-progress --batch-mode --update-snapshots deploy
- name: Deploy to Artifactory
if: ${{ github.repository == 'spring-projects/spring-shell' && 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-shell-main'
repository: 'libs-snapshot-local'
folder: 'deployment-repository'
signing-key: ${{ secrets.GPG_PRIVATE_KEY }}
signing-passphrase: ${{ secrets.GPG_PASSPHRASE }}