generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (35 loc) · 1.02 KB
/
deploy-snapshot.yaml
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
name: Deploy Snapshot to common SAP Artifactory
on:
workflow_dispatch:
schedule:
- cron: 0 20 * * 1-5
jobs:
deploy-snapshot:
name: Deploy Snapshot
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
- name: "Setup java"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
server-id: artifactory-snapshots
server-username: DEPLOYMENT_USER
server-password: DEPLOYMENT_PASS
- name: "Publish Snapshot"
run: >
mvn
--batch-mode
--no-transfer-progress
--threads 1C
--show-version
-DrepositoryId=artifactory-snapshots
-Dmaven.compiler.showCompilationChanges
-Dhttp.keepAlive=false
clean package deploy
env:
DEPLOYMENT_USER: ${{ secrets.ARTIFACTORY_COMMON_USER }}
DEPLOYMENT_PASS: ${{ secrets.ARTIFACTORY_COMMON_PASSWORD }}