Skip to content

Update maven.yml

Update maven.yml #22

Workflow file for this run

name: Build Maven App
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Build with Maven
run: ls -l
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: client-manager-artifact
path: /home/runner/work/Client-Manager/Client-Manager/target/
- name: Submit Dependency Snapshot
uses: advanced-security/[email protected]