Skip to content

Implement topic subscriptions & bump version #4

Implement topic subscriptions & bump version

Implement topic subscriptions & bump version #4

Workflow file for this run

name: Build and Publish
on:
workflow_dispatch:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Java 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: adopt-hotspot
settings-path: ${{ github.workspace }}
- name: Setup maven repo
uses: s4u/[email protected]
with:
servers: |
[{
"id": "waterdog-snapshots",
"username": "${{ secrets.DEPLOY_USERNAME }}",
"password": "${{ secrets.DEPLOY_PASSWORD }}"
}]
- name: Build
if: ${{ github.ref != 'refs/heads/master' }}
run: mvn -B clean package
shell: bash
- name: Build and Deploy
if: ${{ github.ref == 'refs/heads/master' }}
run: mvn -B clean package deploy
shell: bash