Skip to content

INFRA-411: Use shared GA workflows to build and publish. #3

INFRA-411: Use shared GA workflows to build and publish.

INFRA-411: Use shared GA workflows to build and publish. #3

Workflow file for this run

name: Build and Publish
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
java: [ '8', '11']
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
uses: actions/setup-java@v2

Check failure on line 15 in .github/workflows/build-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
with:
java-version: ${{ matrix.Java }}
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
publish:
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
needs: build
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}