Skip to content

Commit

Permalink
INFRA-411: Use shared GA workflows to build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud committed Sep 25, 2024
1 parent 23072d8 commit 92b994f
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven
name: CI

on:
push:
branches: [ master ]
branches: [ "master" ]
pull_request:
branches: [ master ]
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11']
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.Java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.Java }}
distribution: 'adopt'
- name: Build with Maven
run: mvn -B package --file pom.xml
matrix:
java: [ '8', '11']
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.Java }}
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

0 comments on commit 92b994f

Please sign in to comment.