Skip to content

Commit

Permalink
workflow to only run on change to application
Browse files Browse the repository at this point in the history
or workflow dispatch
  • Loading branch information
adamsk4 authored Oct 19, 2022
1 parent f5030a2 commit c5bcedf
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: CI with mvn
on:
push:
branches: [ main ]
paths: 'DeFi-Data-Engine/**'
pull_request:
branches: [ main ]
paths: 'DeFi-Data-Engine/**'
workflow_dispatch:

jobs:
build:
buildDataEngine:

runs-on: [ self-hosted ]
defaults:
Expand All @@ -16,18 +18,19 @@ jobs:

steps:
- uses: actions/checkout@v3
# - name: Set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'temurin'
# cache: maven

- name: Build with Maven
run: mvn -B package --file pom.xml

# - run: mvn --batch-mode --update-snapshots verify
# - run: mkdir staging && cp target/*.jar staging
# - uses: actions/upload-artifact@v3
# with:
# name: Package
# path: staging
buildRestAPI:
runs-on: [ self-hosted ]
defaults:
run:
working-directory: "DeFi-Data-Engine/Rest Application/"

steps:
- uses: actions/checkout@v3

- name: Build with Maven
run: mvn -B package --file pom.xml

0 comments on commit c5bcedf

Please sign in to comment.