pipeline for build; standardizing pipeline naming #1
Workflow file for this run
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 On Merge To Master | |
on: | |
push: | |
branches: | |
- build-trigger-cd | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
cache: maven | |
- name: Run Build with Maven | |
run: mvn -B clean package | |
- name: Prepare build | |
run: mkdir dist && cp target/*.jar dist | |
- name: Deploy Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Executable | |
path: dist |