-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.12 KB
/
smeup.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
name: Deploy to nexus
on:
push:
branches: [master, develop]
env:
DISTRIBUTION: zulu
JAVA_VERSION: 11
jobs:
deploy-jardis-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set smeup nexus settings for snapshots
if: ${{ github.ref == 'refs/heads/develop' }}
uses: actions/setup-java@v3
with:
distribution: ${{ env.DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
server-id: snapshots
cache: 'maven'
server-username: NEXUS_USER
server-password: NEXUS_PASSWORD
- name: Set smeup nexus settings for releases
if: ${{ github.ref == 'refs/heads/master' }}
uses: actions/setup-java@v3
with:
distribution: ${{ env.DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
server-id: releases
cache: 'maven'
server-username: NEXUS_USER
server-password: NEXUS_PASSWORD
- name: Publish to smeup nexus
run: mvn deploy -DskipTests
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}