-
Notifications
You must be signed in to change notification settings - Fork 39
35 lines (33 loc) · 1.02 KB
/
deploy.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
name: Deploy
on:
workflow_dispatch:
inputs:
server:
type: choice
description: Server to build
options:
- chat-server
- game-server
- login-server
default: game-server
skip-tests:
type: boolean
description: Skip tests during build
jobs:
build:
name: Deploy ${{ github.event.inputs.server }}
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.server == 'game-server' && 'production' || null }}
concurrency: ${{ github.event.inputs.server }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
env:
FTP_URL: ${{ secrets.LIVE_SERVER_FTP_URL }}
run: mvn -B -Dmaven.source.skip=true -Dmaven.test.skip=${{ github.event.inputs.skip-tests }} -pl :commons,:${{ github.event.inputs.server }} package -Dftp.url=$FTP_URL