-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (47 loc) · 1.53 KB
/
dev-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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: deploy to sonatype dev
on:
workflow_dispatch:
inputs:
module:
type: choice
required: true
description: デプロイするモジュール
options:
- playtest-db
- playtest-gauge-db
- playtest-browser
- playtest-gauge-browser
- playtest-gauge-rest
- playtest-json
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- name: Gauge install
run: |
curl -SsL https://downloads.gauge.org/stable | sh
gauge install java --version 0.7.15
gauge version
- name: run db
if: github.event.inputs.module == 'playtest-gauge-db'
run: |
cd playtest-gauge-db/docker/db/postgresql/
docker compose up -d
- name: Build & Unit Test & Deploy
run: |
cd ${{ github.event.inputs.module }} && mvn clean deploy --batch-mode --no-transfer-progress -DperformRelease=true -Dproject.version=1.0-SNAPSHOT
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}