Skip to content

Merge remote-tracking branch 'origin/dev' into dev #135

Merge remote-tracking branch 'origin/dev' into dev

Merge remote-tracking branch 'origin/dev' into dev #135

Workflow file for this run

name: Maven Deploy
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: 'mariadb:10'
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_RANDOM_ROOT_PASSWORD: yes
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build
run: mvn -B package -Dmaven.test.skip=true
- name: Test
run: mvn -B test
env:
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
MYSQL_USERNAME: test
MYSQL_PASSWORD: test
- name: Install GPG Key
run: echo -e "$GPG_PRIVATE_KEY" | gpg --import --no-tty --batch --yes
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Deploy to JavaWebStack Repository
run: mvn deploy -B -s build/settings.xml -Dmaven.test.skip=true
env:
DEPLOYMENT_USERNAME: ${{ secrets.DEPLOYMENT_USERNAME }}
DEPLOYMENT_PASSWORD: ${{ secrets.DEPLOYMENT_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}