CI with mvn #16
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: CI with mvn | |
on: | |
push: | |
branches: [ main ] | |
paths: 'DeFi-Data-Engine/**' | |
pull_request: | |
branches: [ main ] | |
paths: 'DeFi-Data-Engine/**' | |
workflow_dispatch: | |
jobs: | |
buildDataEngine: | |
runs-on: [ self-hosted ] | |
defaults: | |
run: | |
working-directory: "DeFi-Data-Engine/DeFi Data Engine/" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build with Maven | |
run: mvn clean compile assembly:single -Dmaven.skip.test=true | |
- name: Upload jar | |
uses: actions/upload-artifact@v3 | |
with: | |
name: DEjar | |
path: defi-data-engine-0.0.1-jar-with-dependencies.jar | |
# 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 | |