-
Notifications
You must be signed in to change notification settings - Fork 90
55 lines (51 loc) · 1.61 KB
/
build-sbm-support-rewrite.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build
on:
push:
branches:
- "**"
paths:
- "sbm-support-rewrite/**"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: sbm-support-rewrite
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17
cache: 'maven'
- name: Maven Build
run: mvn --batch-mode clean package
# - name: Setup JFrog CLI
# uses: jfrog/setup-jfrog-cli@v3
# with:
# version: 2.46.2
# env:
# JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
# MAVEN_REPO_ID: repo.spring.io
# MAVEN_REPO_URL: https://repo.spring.io/libs-snapshot-local
# # This command adds a new server configuration to the JFrog CLI
# - run: |
# export SERVER_ID="repo.spring.io"
# jf c add $SERVER_ID --url=https://repo.spring.io/libs-snapshot-local --access-token=${{ secrets.JF_ARTIFACTORY_SPRING }} --interactive=false
#
# - name: Deploy to Artifactory
# run: |
# jfrog mvnc \
# --server-id-deploy $SERVER_ID \
# --repo-deploy-releases release \
# --repo-deploy-snapshots snapshot
# echo JFROG_CLI_BUILD_NAME=sbm-support-rewrite >> $GITHUB_ENV
# echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
# - name: Build and Publish
# env:
# DISABLE_SAMPLES: true
# run: |
# jfrog mvn clean install --repo=repo.spring.io
# jfrog build-publish