Implement topic subscriptions & bump version #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |