Skip to content

produce an artifact containing the jar file #25

produce an artifact containing the jar file

produce an artifact containing the jar file #25

Workflow file for this run

name: Java CI
on:
[push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
- name: Display GitHub Workspace
run: echo "GitHub Workspace ${GITHUB_WORKSPACE}"
- name: List GitHub Workspace
run: ls $GITHUB_WORKSPACE/target
- name: Publish Artifact
uses: actions/upload-artifact@v4
with:
name: jar-file
path: ${{ github.workspace }}/**/*.jar